Shutting Down Computers Remotely

by Mar 16, 2009

WMI not only provides rich information, it also supplies methods that you can call to take action. In the next example, you can forcefully shut down a remote system as long as you have appropriate privileges and there is no firewall blocking your way:

$os = Get-WmiObject Win32_OperatingSystem -computerName