powershell - How do I get specific properties with Get-AdUser -
i have following ps script written:
get-aduser -filter * -searchbase 'ou=users & computers, dc=aaaaaaa, dc=com' -properties displayname | export-csv "adusers.csv"
from can tell should returning displayname. it's returning though. problem distinguishedname causing truncation problems later on in process. how can script return properties?
using select-object expample:
get-aduser -filter * -searchbase 'ou=users & computers, dc=aaaaaaa, dc=com' -properties displayname | select -expand displayname | export-csv "adusers.csv"
Comments
Post a Comment