Update user's DN
hi,
is there command, script or tool update display name ad users ? (i'm using win2k3)
thanks
you cannot rename user object set-aduser. must use rename-adobject cmdlet instead. has -newname parameter. perhaps work:
get-aduser -searchbase 'ou=ou,dc=domain,dc=domain' -filter * | foreach {rename-adobject -identity $_ -newname ($_.givenname + " " + $_.surname.toupper()) }
however, i must caution while names case aware (that is, maintain case assign name of object), not case sensitive. cannot rename object new name difference in case. if problem you, solution have seen rename twice.
richard mueller - mvp directory services
Windows Server > Windows PowerShell
Comments
Post a Comment