Batch File or VBScripting Question

Posted on 2006-05-15
Last Modified: 2010-05-01
I wasn't sure which cat orgy this question should go under so I put it here. I have a command line that I would like to turn into a batch file or a script. Netdom is a tool that included in the WinXP Support Tools, and it's used to rename computers remotely. Ideally I would like to be prompted for the renamecomputer name, newname, and the usero. Here's the link that I found on how to use the tool:;en-us;298593&sd=tech. And here's the command line that worked for me. Thanks for your help.

netdom renamecomputer gx110-image /newname:GX110-1387 /userd:OSR-NT\administrator /passwordd:* /usero:gx110-image\administrator /passwordo:* /reboot:30
Question by:big_grasshopper
    1 Comment
    LVL 23

    Accepted Solution

    Hi, it definitely can be done through VBScript.

    This page gives you the code you need, you will have to modify it for your purposes (to display prompts instead of reading values from a text file) but that should be pretty easy...

    Here it is:

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
    Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

    779 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

    15 Experts available now in Live!

    Get 1:1 Help Now