Skip to content

Instantly share code, notes, and snippets.

@kbbgl
Created May 25, 2020 06:40
Show Gist options
  • Save kbbgl/9a08be40a65d67917a142330610c2e88 to your computer and use it in GitHub Desktop.
Save kbbgl/9a08be40a65d67917a142330610c2e88 to your computer and use it in GitHub Desktop.
[logout all users in Windows] #windows #powershell #admininistration
quser
# Response
USERNAME SESSIONNAME ID STATE IDLE TIME LOGON TIME
>administrator console 2 Active none 9/22/2020 11:04 AM
# logs out user session
logout 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment