Created
November 2, 2015 14:03
-
-
Save ctigeek/a3b1dd608e09433c48c3 to your computer and use it in GitHub Desktop.
Logout every user on a machine with extreme prejudice.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Logout-AllUsers($computerName) { | |
| (gwmi win32_operatingsystem -ComputerName $computerName).Win32Shutdown(4) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment