Netsh is good for batching and it is handy since it covers many different
network settings. I don't think it can change the computer name, though.
To avoid some problems with netsh on a milogon build (not registered named
network connections) I had to create my our tool pack to change IP, computer
name and etc.
Thanks for the discussion,
KM
SLe> KM,
SLe> I remember reading in the help that Netsh can change the computer
SLe> name, but
SLe> I could be wrong. Netsh is too complicated for what most people
SLe> want to do;
SLe> I prefer using utilities like the one Hiedi created for static
SLe> TCP/IP on xpefiles.com.
SLe> Regards,
SLe> Sean Liming
SLe> "KM" <(E-Mail Removed)> wrote in message
SLe> news:%(E-Mail Removed)...
>> Sean,
>> I must've asked my question unclearly.
>> I do know about the netsh.exe functionality you listed below. I
>> remember creating similar batch file a long time ago.
>> However, from your previous post in this thread you mentioned you
>> could change computer name using netsh.exe. Is it true?
>> If it is, how did you manage to do that? What would be the netsh
>> command that changes the computer name?
>> Sorry for keeping asking you very simple questions.
>> Thank you for your time,
>> KM
SLe>>> KM,
SLe>>> The Netsh.exe solution was posted in the newsgroups some time
SLe>>> ago.
SLe>>> Here is a solution listed:
SLe>>> Set a batch file or script to run during RunOnce, use the command
SLe>>> entries below to have netsh.exe configure the IP for you. You
SLe>>> will also need to add the "Network Command Shell" & "NetSh
SLe>>> Command Shell
SLe>>> Context" & "IP Router
SLe>>> Monitor Library" components.
SLe>>> The batch file/script contents:
SLe>>> netsh interface ip set address name="Local Area Connection"
SLe>>> source=static addr=192.168.1.10 255.255.255.0 192.168.1.1 1
SLe>>> netsh interface ip set dns name="Local Area Connection" static
SLe>>> 192.168.1.2 primary
SLe>>> netsh interface ip add dns name="Local Area Connection"
SLe>>> 192.168.1.3 index=2
SLe>>> netsh interface ip add dns name="Local Area Connection"
SLe>>> 192.168.1.4 index=3
SLe>>> Regards,
SLe>>> Sean Liming
SLe>>> XP Embedded Manager
SLe>>> A7 Enginering (
www.a7eng.com)
SLe>>> Author: Windows XP Embedded Advanced and Windows NT Embedded
SLe>>> Step-by-Step
SLe>>> "KM" <(E-Mail Removed)> wrote in message
SLe>>> news:(E-Mail Removed)...
>>>> Sean,
>>>> Netsh can be used to change the computer name? I did not know that.
>>>> What netsh command does that?
>>>> A while ago I could not find such netsh funtionality and had to
>>>> write my
SLe>>> own
>>>> utility to change the computer name (used SetComputerNameEx API or
>>>> you can change the registry directly).
>>>> I also recall another comand line utility for that - netdom
>>>> (NT/Win2k
>>>> Resource Kits/XP Support Tools). The renamecomputer command of the
>>>> netdom may help here.
>>>> KM
>>>> "Sean Liming (eMVP)" <(E-Mail Removed)> wrote in message
>>>> news:eFq%23$(E-Mail Removed)...
>>>>> Ernie,
>>>>> 1. Netsh can be used to change the IP address and computer name,
>>>>> but
SLe>>> there
>>>>> are some issues. If you use Google to search the newsgroup, there
>>>>> was a solution to Netsh some time ago. There is also a utility
>>>>> that was posted
>>>> to
>>>>> www.xpefiles.com that handles static TCP/IP addresses.
>>>>> 2. You can use FBA.EXE to reboot or shutdown the computer:
>>>>> c:\windows\fba>fba -reboot c:\windows\fba>fba -shutdown
>>>>> Regards,
>>>>> Sean Liming
>>>>> XP Embedded Manager
>>>>> A7 Enginering (www.a7eng.com)
>>>>> Author: Windows XP Embedded Advanced and Windows NT Embedded
SLe>>> Step-by-Step
>>>>> "Ernie" <(E-Mail Removed)> wrote in message
>>>>> news:01dc01c389ce$3692bb40$(E-Mail Removed)...
>>>>>> From a cmd prompt, how do I change the computer name and static
>>>>>> IP address while on a computer running XPe?
>>>>>> From a cmd prompt, how do I remotely reboot a computer running
>>>>>> XPe?
>>>>>> Thanks
>>>>>> Ernie
>> With best regards, KM. E-mail: (E-Mail Removed)
With best regards, KM. E-mail:
(E-Mail Removed)