AsadAlrafidain
Member
- Messages
- 119
- Reaction score
- 17
Because I noticed if this file is created (by ntlite), I lose the choice of upgrading during the windows setup....so, any other way to do this?
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName]
@="mnmsrvc"
"ComputerName"="Your_name"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName]
"ComputerName"="Your_name"
Yes, I had a doubt, to see after a reboot if it is good, as indicated Hellbovine
Same keys.; Start > Settings > System > About > Rename this PC > PC
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ComputerName\ComputerName]
"ComputerName"="PC"
; Start > Settings > System > About > Rename this PC > PC
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters]
"NV Hostname"="PC"
Not quite. In all the other posts from mine, they're in a different assortment. Your post uses TCPIP path for both keys, while Tistou77 and the OP in that link uses the ComputerName path, but only my post puts ComputerName and TCPIP together. My approach is what Microsoft does, since I directly captured the keys by toggling the "Rename this PC" user interface, and then I verified that it works by integrating it on a clean install.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ComputerName\ComputerName]
"ComputerName"="Your_name"
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters]
"NV Hostname"="Your_name"
this worked when integrated into post setup/after install and required one reboot after complete windows installation ....thanksA while back I looked into this for my image and came up with the registry method. I ended up using the unattended for my builds though, because while the registry method works, it doesn't take effect until after a reboot in which you reach the desktop for the first time on a clean install, whereas the unattended method takes effect before reaching the desktop.
There might be a way to have the registry method work on first logon too, such as by modifying all two dozen places the computer name is stored in the registry, or applying this across editions, but I didn't investigate those yet. The following are the minimum number of keys needed in order to change the computer name, confirmed on W10 21H2, but not verified on W11 or later builds:
; Start > Settings > System > About > Rename this PC > PC
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ComputerName\ComputerName]
"ComputerName"="PC"
; Start > Settings > System > About > Rename this PC > PC
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters]
"NV Hostname"="PC"
thanks it workedAfterwards, I have never tested it, just seen someone use it, but I don't know in what condition, etc...
But if Hellbovine's solution works, then just add these keys (reg file) to the image (NTLite => Registry)
Code:Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ComputerName\ComputerName] "ComputerName"="Your_name" [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters] "NV Hostname"="Your_name"