Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,



Please if anyone can suggest me how can I move the Username from sAMAccountName field to user-Principal-Name field in active directory.



I have created more than 1000 of user in active directory and used sAMAccountName field for Username but due to sAMAccountName length 20 characters restriction.

I want to use user-Principal-Name(upn) as Username.

Is there any script command or any other method to transfer username’s from sAMAccountName to user-principal-Name(upn) ?.


Thanks in Advance.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900