Contact Info

Crumbtrail » Administration » Powershell » Powershell 3.0 » Restart-Computer

Restart-Computer - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »


Short description
Restarts ("reboots") the operating system on local and remote computers.

Restart-Computer [[-ComputerName] <String[]>] [[-Credential] <PSCredential>] [-DcomAuthentication <AuthenticationLevel>
] [-Delay <Int16>] [-For <WaitForServiceTypes>] [-Force] [-Impersonation <ImpersonationLevel>] [-Protocol <String>] [-T
imeout <Int32>] [-Wait] [-WsmanAuthentication <String>] [-Confirm] [-WhatIf] [<CommonParameters>]
Restart-Computer [[-ComputerName] <String[]>] [[-Credential] <PSCredential>] [-AsJob] [-DcomAuthentication <Authenticat
ionLevel>] [-Force] [-Impersonation <ImpersonationLevel>] [-ThrottleLimit <Int32>] [-Confirm] [-WhatIf] [<CommonParamet

The Restart-Computer cmdlet restarts the operating system on the local and remote computers.

You can use the parameters of Restart-Computer to run the restart operations as a background job, to specify the authen
tication levels and alternate credentials, to limit the operations that run concurrently, and to force an immediate res

Beginning in Windows PowerShell 3.0, you can wait for the restart to complete before running the next command, specify 
a waiting timeout and query interval, and wait for particular services to be available on the restarted computer. This 
feature makes it practical to use Restart-Computer in scripts and functions. You can also use the WSMan protocol to res
tart the computer, in case DCOM calls are blocked, such as by an enterprise firewall.

This cmdlet requires Windows PowerShell remoting only when you use the AsJob parameter in a command.