Important Notice: On February 29th, this community will be put into read-only mode. All existing posts will remain but customers will be unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

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 comment
Date Votes
  • I think something like this would work. You should just be able to run it on your PC as log as you are on the same network as the computers being renamed. You'll need to run it with credentials that are local admins on the PC's. I just threw this together so make sure you test/tweak it.
    $Computers = New-Object System.Collections.ArrayList

    $Computers = Import-CSV -Path "C:\Path\listOfComputers.csv"

    Foreach ($Computer in $Computers)


    Rename-Computer -ComputerName $Computer.Name -NewName $Computer.NewName -Restart



Please sign in to leave a comment.

Didn't find what you were looking for?

New post