Force Logoff on Remote Machine Via PowerShell

2017-12-07T10:50:47+00:00 June 8th, 2011|PowerShell|

Just a quick command here to logoff remote machines via PowerShell

“(gwmi win32_operatingsystem -ComputerName ComputerName -cred (get-credential)).Win32Shutdown(4)”

This will log every user off the machine specified above.