Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Get-Aduser in Powershell cutting off fields

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

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading