Contact Info

Crumbtrail

ActiveXperts.com » 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 »

Restart-Computer

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

Syntax


Description
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
tart.


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.