Dec 22 2022 04:53 AM
Hi All ,
I am using below command to get a list of all active users in AD, what should i add to this command to get UPN and Object ID ?
Get-ADUser -Filter {Enabled -eq $true} -properties * | select-object samaccountname,givenname,surname,Enabled | export-csv -path c:\temp\Enabledexportusers.csv
Thanks in Advance
Alex
Dec 22 2022 07:52 AM
SolutionDec 22 2022 07:52 AM
Solution