Create a scheduledjob with Powershell to restart a computer

Create a scheduledjob with Powershell to restart a computer

Register-ScheduledJob -name RestartComputer -ScriptBlock {Restart-Computer -ComputerName localhost -Force} -Trigger (New-JobTrigger -at "3:05pm" -Once) -ScheduledJobOption (New-ScheduledJobOption -RunElevated -WakeToRun) -Credential (Get-Credential)

Lämna ett svar

E-postadressen publiceras inte. Obligatoriska fält är märkta *

Howto – Connect to Configuration Manager 2012 from Powershell

Hi, Emil here. Have you ever wonder howto connect to a configuration manager 2012 site from Powershell? Okay, follow the steps below to success: Requirements: SCCM 2012 Console Powershell 3.0

Howto Force remote clients to update their Sccm clients Machine Policy Retrieval & Evaluation Cycle via Powershell

Hello! Here is some script to force a Sccm Client’s Machine Policy Cycle on remote client in a domain. But first. You need to be sure you have enable the

Powershell – Automating Computer naming during OSD

1) Save the following script as OSDComputerName.ps1 on a networkshare. I use Hyper-v in my labb and Hyper-v virtual machin gives you over 30 digits of serialnumber and here in