Renaming Computers
Renaming Computers
Renames the specified computer object.
Examples:
Hint: The execution of these examples requires a connected PowerShell drive. |
Rename the computer named "XP01" to the new name "NewXP01" through setting the name property and a subsequent call to the method Update():
$MyComputer = Get-EmdbComputer "emdb:\rootDSE\Managed Users & Computers\solys.local\Chicago\ITService\Workstations\XP01" $MyComputer.Name = "NewXP01" $MyComputer.Update() |
Rename the computer named "XP01" to the new name "NewXP01" using the cmdlet Rename-Item:
Cd "emdb:\rootDSE\Managed Users & Computers\solys.local\Chicago\ITService\Workstations" Rename-Item -Path "XP01" -NewName "NewXP01" |