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 *

SCCM 2012 R2 CU2 is now available

Microsoft has released Cumulative Update 2 for System Center Configuration Manager 2012 R2. It is an optional update (that does not affect the product support lifecycle) that contains fixes for

Howto – Enable Powershell Remoteing in Windows Domain

Here comes some instructions, howto Enable Powershell Remoting in a Windows Domain. Step 1 – Set Powershell Execute Policy: By Default the powershell allow only code-signed powershell script. To be

Deploying Windows To Go

Windows To Go lets you to boot and run Windows 8 (Enterprise) from a USB stick as well as allowing you to connect to your corporate infrastructure from that image.