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

Posted on 2011-10-17
Last Modified: 2012-05-12
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
Question by:loomerg
    LVL 11

    Accepted Solution

    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
    Import-Csv mylist.csv
    foreach ($entry in $list)

    Open in new window

    Original post is here.
    LVL 12

    Expert Comment

    This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
    ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
    This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now