Change computer name for WinPE

lemegapro

New Member
Hello everyone
I'm working on a winPE for troubleshooting.
I loaded the winPe boot.wim and I would like to change the computer name.
I modified the following keys:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName]
"ComputerName"="Test"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName]
@="mnmsrvc"
"ComputerName"="Test"

When I load these modified keys into NTliTE, this is what appears:
Windows Registry Editor Version 5.00

[Machine-SYSTEM\ControlSet001\Control\ComputerName]
[Machine-SYSTEM\ControlSet001\Control\ComputerName\ActiveComputerName]
[Machine-SYSTEM\ControlSet001\Control\ComputerName\ComputerName]

Can you help me and explain how to change the computer name?
With many thanks
 
Why do you need to change WinPE's hostname? It's not used for anything, unless you're joining an Active Directory domain.

1. ControlSet profile ControlSet001 is provided in the boot.wim image, and CurrentControlSet is cloned from it.

2. If your WinPE enables networking with "wpeutil initializenetwork", then you get a randomized hostname. After running wpeutil, WinPE ignores the current ComputerName reg settings.

Instead run these commands, after wpeutil is done:
Code:
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP\Parameters" /v Hostname /t REG_SZ /d "TEST" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP\Parameters" /v "NV Hostname" /t REG_SZ /d "TEST" /f
 
Back
Top