Files
tacticalrmm/scripts/Win_Users_List.ps1
2021-06-17 15:27:40 -04:00

5 lines
206 B
PowerShell

# This script return the list of all users and checks
# if they are enabled or disabled
get-localuser | Select name,Enabled > $env:TEMP\users.txt
Get-Content $env:TEMP\users.txt | foreach {Write-Output $_}