Computing.Net > Forums > Programming > change computer hostname

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 hostname

Reply to Message Icon

Name: mongar
Date: November 29, 2006 at 12:55:28 Pacific
OS: win2003
CPU/Ram: 1
Product: hp
Comment:

does somebody know how to change
the hostname of a windows computer
via script doesnt matter in which language
Perl ,VB and so on
thanks



Sponsored Link
Ads by Google

Response Number 1
Name: Chi Happens
Date: November 30, 2006 at 04:50:01 Pacific
Reply:

hmmm, i have never seen any program that would want to do that, but my guess is that the hostname of the computer is stored within the registry.

Search the registry to see if this is true, and if so then any language that can access the registry should be able to do this. I am pretty certain, however, that it would require a reboot.

Hope this helps,
Chi

They mostly come at night...mostly.


0

Response Number 2
Name: mongar
Date: December 27, 2006 at 13:00:11 Pacific
Reply:

thanks though i have managed to find a method
in perl that will do it thanks anyway its:
Win32::InitiateSystemShutdown($host,300,0,0,1);

thanks
anyway


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


pixel color conversion Visual Basic shell comman...



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 hostname

Change Computer Name www.computing.net/answers/programming/change-computer-name/13422.html

Extract IP address from txt file www.computing.net/answers/programming/extract-ip-address-from-txt-file/13912.html

Batch Help! Pull data from .txt www.computing.net/answers/programming/batch-help-pull-data-from-txt/16173.html