Skip to main content

Windows PowerShell cmdlet to restart the operating system on local and remote computers.

# Force an immediate restart of the computer:
Restart-Computer -ComputerName Server01 -Force -Verbose

# Restart multiple computers:
Restart-Computer -ComputerName Server01, Server02, localhost -Verbose

# Restart a computer by using WsmanAuthentication:
Restart-Computer -ComputerName Server01 -WsmanAuthentication Kerberos -Verbose

# Restart a remote computer and wait for PowerShell:
Restart-Computer -ComputerName Server01 -Wait -For PowerShell -Timeout 300 -Delay 2 -Verbose