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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -