Change Name,Ip Address, & Reboot

E

Ernie

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
 
S

Sean Liming \(eMVP\)

Ernie,

1. Netsh can be used to change the IP address and computer name, but 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 Step-by-Step
 
K

KM

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 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
 
S

Sean Liming \(eMVP\)

KM,

The Netsh.exe solution was posted in the newsgroups some time ago. Here is a
solution listed:


Set a batch file or script to run during RunOnce, use the command entries
below to have netsh.exe configure the IP for you. You will also need to add
the "Network Command Shell" & "NetSh Command Shell Context" & "IP Router
Monitor Library" components.



The batch file/script contents:



netsh interface ip set address name="Local Area Connection"

source=static addr=192.168.1.10 255.255.255.0 192.168.1.1 1

netsh interface ip set dns name="Local Area Connection" static 192.168.1.2
primary

netsh interface ip add dns name="Local Area Connection" 192.168.1.3 index=2

netsh interface ip add dns name="Local Area Connection" 192.168.1.4 index=3




Regards,

Sean Liming
XP Embedded Manager
A7 Enginering (www.a7eng.com)
Author: Windows XP Embedded Advanced and Windows NT Embedded Step-by-Step
 
K

KM

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 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 will
SLe> also need to add the "Network Command Shell" & "NetSh 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" 192.168.1.3
SLe> index=2

SLe> netsh interface ip add dns name="Local Area Connection" 192.168.1.4
SLe> 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> Step-by-Step









With best regards, KM. E-mail: (e-mail address removed)
 
S

Sean Liming \(eMVP\)

KM,

I remember reading in the help that Netsh can change the computer name, but
I could be wrong. Netsh is too complicated for what most people want to do;
I prefer using utilities like the one Hiedi created for static TCP/IP on
xpefiles.com.

Regards,

Sean Liming
 
K

KM

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,

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>>> Step-by-Step






With best regards, KM. E-mail: (e-mail address removed)
 
S

Sean Liming \(eMVP\)

KM,

Now I remember. Computer name can be easily changed within the registry, but
the IP address has to be changed with Netsh.

Regards,

Sean Liming
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top