Windows - List All Users | v1.0 JCCG
windows
$UserAccounts = Get-WmiObject -Class Win32_UserAccount -Filter {LocalAccount = "True"} | select Name, Disabled
Write-Output $UserAccounts
Lists all user accounts on a Windows system and shows if the account is enabled or disabled
To import this command into your JumpCloud tenant run the below command using the JumpCloud PowerShell Module
Import-JCCommand -URL "https://github.com/TheJumpCloud/support/blob/master/PowerShell/JumpCloud%20Commands%20Gallery/Windows%20Commands/Windows%20-%20List%20All%20Users.md"