Remote log off

By | March 20, 2018

I recently had a console session hang with just a white screen and no start menu on an Exchange Server. Not wanting to reboot the server and disrupt the entire office, I used the following to remotely log the admin out via PowerShell:

(gwmi win32_operatingsystem -ComputerName $PCname).Win32Shutdown(4)