Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources: Active Threads
Viewing all articles
Browse latest Browse all 8411

extract users and general details from an OU

$
0
0

Howdy!

 

this seems so simple but can get it to report the proper info.

I just want to extract users form an OU w/ maybe namfe, email, and any other field that's not empty.

this is what I have, but it only report the fullname and the other fields are empty.

Ideally I'd like to have first and last name in separate columns.

Get-ADUser -SearchBase "ou=testou,dc=my,dc=com" -filter * -resultsetsize 5000 | select-object givenName, sn,mail,description | export-csv c:\export.csv

please help!

Thanks


Viewing all articles
Browse latest Browse all 8411

Latest Images

Trending Articles



Latest Images