Have you ever had to rename a lab of computer or even an entire site? I have been checking computer names in Active Directory this week. Besides cleaning up stale computer accounts, I have been trying to ensure that all of my computer names are standardized. Today, I noticed that a lab of 36 computers was missing one computer.
When this lab was replaced in the summer, someone accidentally named a computer incorrectly. When I physically checked the lab, the computer at spot 12 was named 13. This caused every computer to be off by a name. Not wanting to login to 20+ computers and rename them manually, I turned to my trusty friend – PowerShell. Let’s see if the Rename-Computer cmdlet can give us a PowerShell script to change computer names!