Jun 30 2009 3:38PM GMT
Posted by: Colin Smith
Powershell, Remote boot, Administration, Windows Administration
Reboot a Remote Windows Host Remotely
Posted by: Colin Smith
Say you need to reboot a server and this is something that you would like to automate based on certain criteria. For instance, I might want to reboot a server if I can talk to the server but for somereason my SQL Server is not up and running. If everything is configured correctly the SQL Server should start up again on boot. So you can do something like the following.
$varname = Get-WmiObject Win32_OperatingSystem -computername “remotemachine”
$varname.reboot()
Now you can check your SQL Server once the machine is back up.



You must be logged-in to post a comment. Log-in/Register