Created
September 9, 2020 03:03
-
-
Save samuelwilliams/4e2af01335968b207deaf2e91592d15c to your computer and use it in GitHub Desktop.
List of helpful powershell commands
This file contains 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
#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