Rename computer from a batch file?

  • Thread starter Thread starter Mark K Vallevand
  • Start date Start date
M

Mark K Vallevand

I hope I'm just overlooking a simple answer, but is there a way to rename an
XPe system from a batch file?
Using the GUI isn't an option in this case, nor is setting the name in
Target Designer.

--
Regards.
Mark K Vallevand (e-mail address removed)

Beer is living proof that God loves us and wants us to be happy.
- Benjamin Franklin


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.
 
Mark,

The NEWSID program from SysInternals can do this with a command line
switch. Of course, it also generates a new Random SID at the same
time. I have my system setup to run a batch file after cloning. I
prompt the user for a name. Our volume is low enough that this is OK


Steve S
SteveDotSchilzATeyeDASHimagingDOTcom
 
Thanks. Yes, I checked it out already. I'd need to use ideas from the
source code, however. NEWSID gives a new SID, which I don't need because
fbreseal has done that. And NEWSID breaks something in my image. I'm not
going to chase down the problem because fbreseal works.

I was hoping for something built into XPe already.

--
Regards.
Mark K Vallevand (e-mail address removed)

Beer is living proof that God loves us and wants us to be happy.
- Benjamin Franklin


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.
 
Mark said:
Thanks. Yes, I checked it out already. I'd need to use ideas from the
source code, however. NEWSID gives a new SID, which I don't need because
fbreseal has done that. And NEWSID breaks something in my image. I'm not
going to chase down the problem because fbreseal works.

I was hoping for something built into XPe already.
I'm pretty sure net.exe or one of the other tools should be able to do
this...
 
It's possible to set the computername through the registry.
Simply write a reg file with the following information:

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName]
"ComputerName" = "YourName"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"NV Hostname" = "YourName"

Regards
Markus
 
I was sure there was something, too. But, I don't see it. Usually, when
you stop looking for the answer and ask for help, the answer is in the next
place you look. Kind of a Murphy's Law.

--
Regards.
Mark K Vallevand (e-mail address removed)

Beer is living proof that God loves us and wants us to be happy.
- Benjamin Franklin


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.
 
Thanks. I might have to do it this way.

--
Regards.
Mark K Vallevand (e-mail address removed)

Beer is living proof that God loves us and wants us to be happy.
- Benjamin Franklin


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.


Markus Fischbacher said:
It's possible to set the computername through the registry.
Simply write a reg file with the following information:

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName]
"ComputerName" = "YourName"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"NV Hostname" = "YourName"

Regards
Markus

Heidi Linda said:
I'm pretty sure net.exe or one of the other tools should be able to do
this...
 
Back
Top