How to Reboot a Server with Powershell

This is done simply by using WMI and the operatingsystem Class. At the powershell command prompt type:

$server = gwmi Win32_operatingsystem -computer Your_Servername
$server.reboot()

Its that simple !

If your interested in knowing what other propteries and methods are available you can see them with this command .

$server | get-member

Hope this tip helps !

Chris

Advertisements