• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 307
  • Last Modified:

How to change all computer names on our domain...

We are changing our computer naming convention and would like to automate this process. We have a mix of XP and WIn 7 computers. Netdom will work for some but not all. Would like one soluton for all OS. Would rather not walk down all these computers. ideas
0
loomerg
Asked:
loomerg
1 Solution
 
X_layerCommented:
If you can use Powershell, try this:
function renameAndReboot([string]$computer, [string]$newname)
{
        $comp = gwmi win32_computersystem  -computer $computer
        $os   = gwmi win32_operatingsystem -computer $computer

        $comp.Rename($newname)
        $os.Reboot()
}

Import-Csv mylist.csv

foreach ($entry in $list)
{
    renameAndReboot($entry.oldname,$entry.newname)
}

Open in new window


Original post is here.
0
 
MikeIT ProfessionalCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now