PC Review


Reply
Thread Tools Rate Thread

Change Name,Ip Address, & Reboot

 
 
Ernie
Guest
Posts: n/a
 
      3rd Oct 2003
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

 
Reply With Quote
 
 
 
 
Sean Liming \(eMVP\)
Guest
Posts: n/a
 
      3rd Oct 2003
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



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



 
Reply With Quote
 
KM
Guest
Posts: n/a
 
      5th Oct 2003
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

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

>
>



 
Reply With Quote
 
Sean Liming \(eMVP\)
Guest
Posts: n/a
 
      6th Oct 2003
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


"KM" <(E-Mail Removed)> wrote in message
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

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

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

> >
> >

>
>



 
Reply With Quote
 
KM
Guest
Posts: n/a
 
      6th Oct 2003
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> "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)


 
Reply With Quote
 
Sean Liming \(eMVP\)
Guest
Posts: n/a
 
      6th Oct 2003
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




"KM" <(E-Mail Removed)> wrote in message
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 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> "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)
>
>



 
Reply With Quote
 
KM
Guest
Posts: n/a
 
      6th Oct 2003
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)


 
Reply With Quote
 
Sean Liming \(eMVP\)
Guest
Posts: n/a
 
      7th Oct 2003
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




"KM" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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)
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XPe or XP: Change IP address sometimes requires reboot. Mark K Vallevand Windows XP Embedded 0 5th Apr 2006 04:26 PM
whY DOES THE INCOMING MAIL SERVER ADDRESS CHANGE WHEN I REBOOT =?Utf-8?B?YmV2ZXJpZGdlbg==?= Microsoft Outlook Discussion 5 26th Sep 2005 09:54 PM
address bar clears with every reboot Semper Windows XP Internet Explorer 3 28th Oct 2004 12:32 AM
Address Bar Not Keeping URLs After Reboot CareBear Windows XP Internet Explorer 1 24th Jul 2004 09:03 PM
DHCP Address and DNS Suffix kept after reboot. Greg Lee Windows XP Networking 1 4th Sep 2003 04:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:47 PM.