Force Logoff on Remote Machine Via PowerShell

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

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.

Leave A Comment

like what you see? 

Sign-up to our newsletter and never miss out on the latest blogs, events and tech news from the world of risual
SUBSCRIBE!
Give it a try, you can unsubscribe anytime.