Rename Active Directory Computers in bulk
Is there a way to rename a list of computers (listOfComputers.csv) that can then be Renamed in Active Directory and of course the result would be a locally renamed Windows 10/11 PC?
Thank you for your help
1
Comments
$Computers = Import-CSV -Path "C:\Path\listOfComputers.csv"
Foreach ($Computer in $Computers)
{
Rename-Computer -ComputerName $Computer.Name -NewName $Computer.NewName -Restart
}