Skip to content

Instantly share code, notes, and snippets.

@bradobro
Created January 14, 2020 21:21
Show Gist options
  • Save bradobro/8c59ffd59d6b01525bd7614af668707c to your computer and use it in GitHub Desktop.
Save bradobro/8c59ffd59d6b01525bd7614af668707c to your computer and use it in GitHub Desktop.
Log someone else out of Windows 10
PS C:\as_admin> query session
SESSIONNAME USERNAME ID STATE TYPE DEVICE
services 0 Disc
betty 1 Disc
>console bobby 2 Active
PS C:\as_admin> logoff 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment