Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Renaming Computer with command line

Status
Not open for further replies.

DTSMAN

Technical User
Mar 24, 2003
1,310
US
I am not sure if I am in the right place. I spend my time over on the cabling and POS forums. I am wanting a batch file that renames the computer and reboots it. I am in the POS industry and many times we drop ship computers to customers and the naming and numbering shceme is critical to the networking operations of the POS system. Here is what I have so far. These computers are not part of a doamin, so in the domain part I just gave it my workgroup name of workgroup. By using the batch file the customer would only have to go to it instead of being talked through all the windows steps to do it. There will be other things in this batch file that we already know how to do.

set name=Term1 (This is the line the customer would change)

netdom renamecomputer mycomputer /newname:%name% /userd:workgroup\alohasvc /passwordd:aloha /usero:Bo /passwordo:aloha /reboot:05


Am I on the right track? If not can someone point me to the right direction. TIA

Bo

Kentucky phone support-
"Mash the Kentrol key and hit scape."
 
Oh, forgot to mention that this is not working and can not figure out if it is because of this domain issue or a syntax issue, or an operating system issue. This is own XP but I would like it to work on 98 also.

Bo

Kentucky phone support-
"Mash the Kentrol key and hit scape."
 
This is the wrong forum because you are in the database forum. You might want to post this in the Windows XP forum, maybe even VBScript forum if there is one.
 
Thanks, I moved it over to the vb.net forum, didn't see one for scripting. I didn't get any responses on the xp forum last time I tried there. I will continue to monitor this thread if someone does show up to help.

Bo

Kentucky phone support-
"Mash the Kentrol key and hit scape."
 
Here is the VBScript forum:

forum329

I would stay away from doing it in VB.Net, because the target PC's would need to have the .Net framework installed. A VBScript file could be called like a batch file.
 
RiverGuy said:
I would stay away from doing it in VB.Net, because the target PC's would need to have the .Net framework installed.
But I'd prefer to learn it first as all the roads in windows leads to .net language!!
I believe the next generation of windows will have .Net Framework installed default.

________________________________________________________________________
Zameer Abdulla
Visit Me
A sweater is usually put on a child when the parent feels chilly.
 
alvechurchdata, You should be able to show the "glittering" of XP to those customers or those new functions those were not available within 95/NT environment.

________________________________________________________________________
Zameer Abdulla
Visit Me
A sweater is usually put on a child when the parent feels chilly.
 
You should be able to show the "glittering" of XP to those customers

They agree that it looks very pretty but they don't want glitter. They don't want to have rounded windows or fancy fading menus or have a surround-sound media experience. All they want to do is run reports, search for customer information, print invoices and keep their company running. XP has no attraction for them - I've even got one customer who is still running DOS on a Novell network.

Geoff Franklin
 
A saying translated to something like this..
"God will not change people if they don't wish to"

________________________________________________________________________
Zameer Abdulla
Visit Me
A sweater is usually put on a child when the parent feels chilly.
 
I think I may be thowing people off with the netdom command. This is all I could find in web searches. I am not trying to do this across a network. I am wanting the pc to boot to a desk top and on the desk top will have 8 bactch files, each relative to the terminal the customers wants it to become. So if the customer selects a batch file called Term-1 it will run scripts or commands that will rename the pc to Term1 and set it to a specific ip and then reboot. Does this help clarify anything?

Bo

Kentucky phone support-
"Mash the Kentrol key and hit scape."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top