Skip to content

Instantly share code, notes, and snippets.

@samuelwilliams
Created September 9, 2020 03:03
Show Gist options
  • Save samuelwilliams/4e2af01335968b207deaf2e91592d15c to your computer and use it in GitHub Desktop.
Save samuelwilliams/4e2af01335968b207deaf2e91592d15c to your computer and use it in GitHub Desktop.
List of helpful powershell commands
#Get the local accounts on a machine
Get-WmiObject -Class Win32_UserAccount -Filter "LocalAccount='$True'" | Select-Object Name, Disabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment