tacticalrmm/scripts_wip/Win_AD_List_Enabled_Users.ps1

4 lines
250 B
PowerShell
Raw Normal View History

2021-06-24 21:20:49 +00:00
# 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