Computing.Net > Forums > Programming > Change Computer Name

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Change Computer Name

Reply to Message Icon

Name: DWIL001
Date: October 4, 2005 at 08:18:00 Pacific
OS: XP
CPU/Ram: 2.06
Comment:

I am trying to change the computer name of my system with a batch file logon script. The script will check to see if the system has a unique name if it does it will change the name based on a predefined string value concatenated with a randomly generated number, Any ideas or help will be welcomed.

DEEMAN




Sponsored Link
Ads by Google

Response Number 1
Name: Impavidus
Date: October 5, 2005 at 13:15:31 Pacific
Reply:

How many random numbers do you want?

E.g. MACHINE12345

or

MACHINE123, MACHINE 132, MACHINE964 etc.


0

Response Number 2
Name: DWIL001
Date: October 5, 2005 at 19:56:40 Pacific
Reply:

Five random numbers will be fine; I wrote a VB.NET app that gets the computer name using GetComputerName API and I am trying to implement the SetComputerNameEx API with no luck. There is little documentation on this API and what I have found is high level. I can use the SetComputerName API and it changes the NetBOIS name but not the physical.

DEEMAN


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


runtime error Matching Patterns



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Change Computer Name

Perl Renaming Computer name www.computing.net/answers/programming/perl-renaming-computer-name/14925.html

Computer Name www.computing.net/answers/programming/computer-name/13107.html

change computer hostname www.computing.net/answers/programming/change-computer-hostname/14912.html