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

Popular posts from this blog

Generating Event ID 91, 44 with CA (In Event Viewer with source as Certsvc)

Group policy default policy cannot be edited because network name not found

Problem when changing update source