Skip to content

Instantly share code, notes, and snippets.

@Purp1eW0lf
Created April 4, 2022 10:29
Show Gist options
  • Save Purp1eW0lf/2c8e0b3228bc9feefe7ffb259ee45e76 to your computer and use it in GitHub Desktop.
Save Purp1eW0lf/2c8e0b3228bc9feefe7ffb259ee45e76 to your computer and use it in GitHub Desktop.
gwmi win32_useraccount |
select Name, SID |
? SID -match "" #insert SID between quotes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment