Re: Computer Name

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Bin Xing (BinXing_at_discussions.microsoft.com)
Date: 11/17/04


Date: Wed, 17 Nov 2004 15:06:01 -0800

Hi KM,

Thank you for your reply. Yes, I'm talking about the RAM disk with Remote
Boot Manager, and I'd like to change the computer name without a reboot.

Since System Cloning assigns a random computer name and our applications are
based on computer name, I have to specify computer name for each cloned XPe.
We've already used the same way to set computer name on Windows NT Embedded
(no cloning, just a same image for different computers), and it worked fine
on NT embedded. Now, we're going to use XPe for new projects.

It seems there is no way to set computer name in XPe, that's fair because
XPe doesn't know how many computers will use the same image. But I guess XPe
should give chance to user to specify their own computer names with, for
example, Remote Boot Manager or a batch file.

Bin

"KM" wrote:

> Bin,
>
> Since you are talking about RAM (Remote Boot) image, I believe you are trying to change the hostname/computername without a reboot.
> Right?
>
> Unfortunately, it is not going to work with such easy approach.
> IIRC, kernel has to read the hostname early at boot. If you change the hostname later, you must restart the machine.
> At least this is true for the ComputerName.
>
>
> I don't know any easy good way for you to accomplish what you want to.
>
> --
> Regards,
> KM, BSquare Corp.
>
>
> > Hi,
> >
> > I'm using XPe with Remote Boot Manager for a diskless system. DHCP & DNS are
> > used on the server side, and IP addresses are not hardcoded in DHCP server.
> > System Cloning generates a random name for XPe at boot time, however, I'd
> > like to specify the computer name according to each NIC's MAC address instead
> > of random name.
> >
> > I made a batch file to modify the registery for computer name and restart
> > DHCP client & DNS client. After running the batch file, if I run "hostname",
> > it shows the modified computer name, if I run "ping xxxx(NewHostName)", it
> > also works. But if I try to map driver as "\\xxxx(NewHostName)", it doesn't
> > work and shows error message "a duplicate name exists". And I'm still able to
> > map driver with old hostname, like "\\xxxx(OldHostName)". I update the
> > following registery:
> >
> > [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName]
> > "ComputerName"=NewHostName
> >
> > [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName]
> > "ComputerName"=NewHostName
> >
> > [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog]
> > "ComputerName"=NewHostName
> >
> > [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
> > "Hostname"=NewHostName
> > "NV Hostname"=NewHostName
> >
> > Thanks.
> >
> > Bin
>
>
>



Relevant Pages

  • Re: remote boot image size
    ... You can make headless XPe, that will do things by itself, no need for overcomplicating such easy thing. ... If you want to use same XPe image for different tasks then your application or batch file can be located on server if not you can ... you can make set in registry run value so your application/bat file is executed on each boot. ... > (using remote desktop) to make sure the new image is running correctly. ...
    (microsoft.public.windowsxp.embedded)
  • Re: how to force a hard reboot remotely
    ... You can set up a BIOS boot time, ... A reboot from remote is simple, ... advice would be to get to the console if you absolutely have to cold boot it. ...
    (freebsd-questions)
  • Re: bootable CD for diskless systems (XPe)
    ... Have you created preFBA ELTO CD and inserted it during the FBA? ... Can you access ELTO CD files from XPE image when you boot from HDD? ... > 6- Then I ran FBA, after FBA was completed, windows embedded were loaded. ...
    (microsoft.public.windowsxp.embedded)
  • Re: newsid on XPE image
    ... After I have copied the XPe disk, I boot XPe and everything works fine. ... I reboot once again, it still works. ... Since we have designed in the USB controller on our own "motherboard", ...
    (microsoft.public.windowsxp.embedded)
  • Re: newsid on XPE image
    ... Let XPe boot and reboot. ... > it runs on our hardware with an ISP1561 USB controller from Philips. ...
    (microsoft.public.windowsxp.embedded)