Active Directory Powershell question
is there way export attributes used active directory in single powershell command?
the following retrieve cn , ldapdisplayname attributes of attributes in schema (one line):
get-adobject -ldapfilter "(objectclass=attributeschema)" -searchbase "cn=schema,cn=configuration,dc=mydomain,dc=com" -properties ldapdisplayname, cn | select ldapdisplayname, cn
-----
richard mueller - mvp directory services
Windows Server > Windows PowerShell
Comments
Post a Comment