Renaming Users

Renames the specified User object.


Examples:


Hint: The execution of these examples requires a connected PowerShell drive.


Rename the User "Eva Smith" to the new name "Eva Meyers" through setting the name property and a subsequent call to the method Update():


$MyUser = Get-EmdbUser "emdb:\rootDSE\Managed Users & Computers\solys.local\Chicago\ITService\Users\Eva Smith"

$MyUser.Name = "Eva Meyers"

$MyUser.Update()


Rename the User "Eva Smith" to the new name "Eva Meyers" using the cmdlet Rename-Item:


Cd "emdb:\rootDSE\Managed Users & Computers\solys.local\Chicago\ITService\Users"

Rename-Item -Path "Eva Smith" -NewName "Eva Meyers"