Renaming a User

Applies To: Windows Server 2008 R2

This topic explains how to use the Active Directory module for Windows PowerShell to rename a user.


The following example demonstrates how to change the relative distinguished name (also known as RDN) of the user Sara Davis to Sara Hettich:

Rename-ADObject 'CN=Sara Davis,OU=Finance,DC=Fabrikam,DC=com' -NewName 'Sara Hettich'

Additional information

For a full explanation of the parameters that you can pass to Rename-ADObject, at the Active Directory module command prompt, type Get-Help Rename-ADObject –detailed, and then press ENTER.