Posted by: Colin Smith
Administration, Powershell, Remote boot, Windows Administration
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”
Now you can check your SQL Server once the machine is back up.