I know its out there but can 't seem to get it right, this Get-Aduser
command is getting the info need but cutting out fields sometimes(giving me the "...") What am I doing wrong? thx
Get-ADUser -f * -Properties *|
where {$_.enabled -eq $true} |
ft Name,EmailAddress,*Phone,*Title,GivenName,Surname,Department > D:\UtilityFiles\AD\users.csv
CodePudding user response:
Helps you getting the data to the file without cut
Get-ADUser -f * -Properties *| where {$_.enabled -eq $true} |select-object Name,EmailAddress,*Phone,*Title,GivenName,Surname,Department | export-csv -path D:\UtilityFiles\AD\users.csv -notypeinformation