I am working with wscript (ADSI) and I am 'looping' because to move an user I have to rename due to a comma, but to rename I have to use the same MoveHere function...
- we created users with the following canonical name: "Smith, John"
- if we want to move the user to antother OU or rename the user with the Movehere-function, it fails due to the comma in the canonical name.... So I can't move or rename....
So the output would be like " LDAP://cn=Smith, John, OU=User, DC=mycompany, DC=com"
As you can see the comma is the problem... because the MoveHere function 'thinks' that I specify an other OU.
Any ideas how I am able to rename or move an user?