Home > Enterprise >  Get-Aduser in Powershell cutting off fields
Get-Aduser in Powershell cutting off fields

Time:08-18

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

  • Related