Re: Changing ComputerName



If you can manually run regedit.exe you can 'load a hive' file to
access the second disk. This works basically as follows:

1) Open Regedit
2) Select a top level key
3) Select file, load hive,
4) Browse to locate the hive of interest
Default locations C:\Windows\System32\config
file 'System' = HKLM\System
file 'Software = HKLM\Software
Default user file is located at (by default)
c:\Documents and Settings\default user\ntuser.dat
5) Give the hive a name (e.g XPE_System)

Now you can make your changes. Be sure to select the loaded branch and
then use the 'Unload hive' command to close it.

That's the manual way, good for experimenting before automating. I
would bet that there is an automated way available, but I don't know
what it is. Maybe REG.EXE could automate this.

I have also seen threads about changing the user name in this
newsgroup. (Search this newsgroup for 'Computer Name' + registry).

A Previous post from Andy Allred[MS] included:
>>
>> You could use a script to alter the ComputerName & Hostname keys such as
>>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName
>>&
>>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
>>before sealing it.
>>
>>Note sure if that's it, though. I do know that if it's on the domain there will be other
>>keys.
>>
>>Andy

.



Relevant Pages

  • Re: Explorer keep launching at start up
    ... keys in two replys. ... "Load at next startup only"=dword:00000010 ... "Image API Enabled Filters"="BMP GIF JPEG PCX PNG TIFF FPX MIX" ... @="Microsoft Office Environment" ...
    (microsoft.public.windowsxp.general)
  • Re: AfxGetApp() returns NULL
    ... I've worked with people that absolutely believe that God intended us to use the format: ... That's why every programmer's text editor has an OPTION of whether to use spaces or tabs. ... the keyboard without requiring function keys, arrow keys, or the mouse. ... The capabilities of automating the VS editor are so poor that I can't even do the simplest ...
    (microsoft.public.vc.mfc)
  • Re: regex - better way?
    ... // Load the file. ... // Print all keys and values. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Naive threading performance questions
    ... The input file line is of the form: ... The keys and values are all ... ASCII in this particular load (which is not true of all my data ... would show up in the dprofpp. ...
    (comp.lang.perl.misc)
  • Re: FC2 wireless woes
    ... > How, specifically, did you load it? ... even though the modules load and the wireless card is detected ... NETDEV WATCHDOG: wlan0: transmit timed out ... Set genstr or keys, not both. ...
    (alt.os.linux.redhat)

Loading