Share via


how to rename AD User Name

Question

Monday, March 18, 2019 7:01 PM

Hi,

I have 400+ AD users, Could anyone please provide a script to update/rename all the CN name for them. 

Shekar-Technet

All replies (3)

Monday, March 18, 2019 7:03 PM

Hello,

Please chek the following link from TechNet.

https://gallery.technet.microsoft.com/scriptcenter/RENAME-AN-ACTIVE-DIRECTORY-47e79efb

Mark it as answer if your question has solved. MCT Regional Lead. x2 MCSE-MCSA Exchange Server & Windows Server


Monday, March 18, 2019 7:57 PM

Please carefully review the following links to set your expectation for posting in  technical forums.

This Forum is for   Scripting   Questions Rather than script requests

How to ask   questions in a technical forum

Forum for Script   requests

Microsoft   Script Gallery

      Microsoft Virtual     Academy - Getting Started with Microsoft PowerShell

      PowerShell Documentation

      PowerShell Style   Guidelines

\(ツ)_/


Monday, March 18, 2019 10:39 PM

You can use Rename-ADObject and Set-ADUser cmdlets to do it. It depends how you will import the new names but if it is from a CSV you can use import-CSV cmdlet as well.

This posting is provided AS IS with no warranties or guarantees , and confers no rights.

Ahmed MALEK

My Website Link

My Linkedin Profile

My MVP Profile