×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Renaming Computer with command line

Renaming Computer with command line

Renaming Computer with command line

(OP)
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."

RE: Renaming Computer with command line

(OP)
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."

RE: Renaming Computer with command line

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.

RE: Renaming Computer with command line

(OP)
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."

RE: Renaming Computer with command line

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.

RE: Renaming Computer with command line

Quote (RiverGuy):

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.

RE: Renaming Computer with command line

Quote:

I believe the next generation of windows will have .Net Framework installed default

True enough - but I'm still supporting customers with Windows 95 and NT. I keep telling them they ought to upgrade but I've not been able to convince them yet.

Geoff Franklin
http://www.alvechurchdata.co.uk

RE: Renaming Computer with command line

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.

RE: Renaming Computer with command line

Quote:

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
http://www.alvechurchdata.co.uk

RE: Renaming Computer with command line

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.

RE: Renaming Computer with command line

(OP)
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."

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close