[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Batch File or VBScripting Question

Posted on 2006-05-15
2
Medium Priority
?
176 Views
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: http://support.microsoft.com/default.aspx?scid=kb;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
0
Comment
Question by:big_grasshopper
1 Comment
 
LVL 23

Accepted Solution

by:
basicinstinct earned 500 total points
ID: 16689122
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: http://www.codecomments.com/archive299-2006-2-809479.html
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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

873 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