Restart PC with PowerShell

Since the PowerShell is going to replace the good old command line, you’ll need a new command in order to restart your computer.

Instead of shutdown you now have to use the simple but effective line restart-computer. If you want to delay the restart, you have to write it like this: Start-Sleep 60 ; Restart-Computer.

Leave a Reply