tacticalrmm/scripts/Win_Users_List.ps1

5 lines
206 B
PowerShell
Raw Normal View History

2021-04-13 21:25:10 +00:00
# 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 $_}