Renaming Username in AD

Hello,

We are planning to rename our users account to be standard on all environment. I need a help to rename the user name + create email alias with the new username and keep the old alias for the users.

Any body can help
LVL 2
fadyazAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Johnson, CD, MVPOwnerCommented:
Which one do you need to change
Email name, sam account name, displayed user name. There are many different occurrences that may imply username.
fadyazAuthor Commented:
We need to rename SamAccountName and add secoend alias with the new SamAccount Name
compdigit44Commented:
I believe the following article has something close to what you are looking for in regarding to renaming the account...

https://social.technet.microsoft.com/forums/windowsserver/en-US/a1113d40-eb08-4239-9b51-8596a0c0863d/rename-active-directory-users-using-powershell-module-for-ad


$Users = Import-CSV csvfiles.csv
$Users | Foreach {Get-QADuser -Identity $_.User | Rename-QADObject -NewName $_.NewName

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.