Rebooting a server/workstation remotely

If you do not have RDP access to a server or workstation, use WMI to do the task.

PS C:\WINDOWS\system32> $SRV = Get-WmiObject win32_operatingsystem -ComputerName 192.168.4.100 -Credential (Get-Credential)

PS C:\WINDOWS\system32> $SRV.Reboot()