tacticalrmm/scripts_wip/Win_AD_List_Enabled_Users.ps1

4 lines
250 B
PowerShell

# ACTIVE DIRECTORY AD LIST ENABLED USERS DOMAIN
Get-ADUser -Filter {Enabled -eq $true} | select Name,Enabled | Export-Csv c:\temp\aduserlist.csv
Get-ADUser -Filter {Enabled -eq $true} | select SamAccountName,Name | Export-Csv c:\temp\aduserlist.csv