Windows 11 image adding .reg (OOBE)

wmn

New Member
Hi,

I tried to add a .reg file to a Windows 11 enterprise image and I can not complete the installation:

Capture d’écran 2021-10-0 130117.png

If I edit the image again and remove the .reg file, it is OK.

.reg file is:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System]
"NoLocalPasswordResetQuestions"=dword:00000001


Tried with, and without autounattend.xml file.

Not removing a single apps or changing any settings give the same result.

Thank you.
 
No problems on clean 21H2 Enterprise, with your reg key & autounattend. Post your preset, maybe someone can find the issue.
I'm hungry for ice cream now...
 
I don't think the reg key by itself is causing problems. We need a copy of your preset to review the other settings.
OOBE screen hides a lot of network related errors, try unplugging the network.
 
wmn, thanks for reporting.
If you found that this policy alone, and all else the same, is causing this issue, then that's a Windows thing - tool just integrates it as instructed.
What you can do is put the REG in Post-setup page instead of the Registry one.
That will delay it Post-setup and avoid this problem.
If Machine (upper post-setup box) doesn't, try the User one.

If you still have the problem, then it's not about that and indeed attach the preset demonstrating the issue.
 
Hi,

I tried adding the registry file to Post-Setup.

Windows installed normally, but none of the registry settings were added to the registry.

It seems that it is impossible to change registry pre-or post setup for a Windows 11 image.

I tried to mound the install.wim image manually (without NTLite) using power-shell, then I edited offline the hive (registry) and saved the image (/commit).

Same problem, unable to complete the setup.

Using a Windows 10 image work perfectly.

Thank you.
 
When I did testing, it was adding the key before setup. And it completed to logon. This was a clean image.
When you mounted it in PSH, was it a clean image or modified before mounting? Without a copy of the preset, it's hard to tell if NTLite is responsible for the issue.
 
When I did testing, it was adding the key before setup. And it completed to logon. This was a clean image.
When you mounted it in PSH, was it a clean image or modified before mounting? Without a copy of the preset, it's hard to tell if NTLite is responsible for the issue.
Hi,

I tried both, modified and virgin images.

I attach the preset.

Thank you.
 

Attachments

  • preset.xml
    6.8 KB
Several things to note:

Windows 11 Enterprise x64 - 10.0.22000.258 (fr-FR)
RTM is 22000.194, this image has already been updated. You should always use the clean 22000.194.

KB5006587 is "2021-09 Dynamic Update for Windows 11 for x64-based Systems", but was released two weeks before RTM (10/5).
Not sure if this update only applies to the beta releases.

OEMSetupComplete is false, which turns off Post-Setup execution in some cases.
 
Windows 11 Enterprise x64 - 10.0.22000.258 (fr-FR)
RTM is 22000.194, this image has already been updated. You should always use the clean 22000.194.

I rechecked the release history, 258 is now GA (General Availability) and considered OK if you're using the untouched download.
If you updated 194 to version 258, then start over with 194.

EDIT - When you add registry updates during Post-setup, you need another command: reg import myfile.reg
Files are only copied, not executed or loaded.

Reg files added from the Registry screen are loaded into the mounted image's hive. What is the difference? Sometimes you want the change working before, or after Post-setup.
 
Last edited:
I tried adding the registry file to Post-Setup.
Windows installed normally, but none of the registry settings were added to the registry.

I tried to mound the install.wim image manually (without NTLite) using power-shell, then I edited offline the hive (registry) and saved the image (/commit).
Same problem, unable to complete the setup.
OK, the first part, the not applying of post-setup, please enable Unattended - toolbar - OemSetupComplete and retry.

Second part only confirms that it should not be integrated into the image, the applying should be delayed, as we suspected earlier.

Thanks.
 
EDIT - When you add registry updates during Post-setup, you need another command: reg import myfile.reg
Files are only copied, not executed or loaded.
Actually not entirely clear, but the tool will do it automatically (regedit /s filename), so he did it fine.
But setupcomplete method is skipped if using OEM keys, and I believe he does have a KMS product key.
If confirmed that it's then applied, will see about at least detecting known KMS keys and suggesting to enable this option.

Reg files have "Registry" as the type, while passive files have "Passive", those that are supposed to be called and are just copied for later referencing.
 
Actually not entirely clear, but the tool will do it automatically (regedit /s filename), so he did it fine.
But setupcomplete method is skipped if using OEM keys, and I believe he does have a KMS product key.
If confirmed that it's then applied, will see about at least detecting known KMS keys and suggesting to enable this option.

Reg files have "Registry" as the type, while passive files have "Passive", those that are supposed to be called and are just copied for later referencing.

Hi,


I have used a UUP dump iso (https://uupdump.net/) of enterprise version (10.0.22000.258).

That created a very clean iso.

Then NTLite added the .net framework and dynamic updates.

I have enabled the option OemSetupComplete.

Then I was able to complete the set-up, but the .reg files are not loaded into the registry.

I confirmed that by using regedit after the first logon and none of my registry mods were added at all.

I even added the line reg import "%WINDIR%\Setup\Files\Windows10.reg" to the SetupComplete.cmd file.

I added them manually by clicking on the files, and then, they ares correctly added.


Thanks.
 
Have you tried add the folder with your reg's into NTL registry section.
Sometimes i've i experienced that rightclick the 4 reg hives edit and close them again will work.
 
Have you tried add the folder with your reg's into NTL registry section.
Sometimes i've i experienced that rightclick the 4 reg hives edit and close them again will work.
The problem is it that if I add the.reg files to the Registry section of NTLite, I can not complete the installation, just look at the first post.

 
Hi everyone,

I know this thread is old, but I have found the culprit for the installation failure, I was adding the following registry entry to the Windows 11 image:

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System]
"NoLocalPasswordResetQuestions"=dword:00000001

That worked perfectly on Windows 10, but Windows 11 Setup do not like it:

Thanks.
 
I re-tested 21H2 Enterprise with both BypassRNO setting and NoLocalPasswordResetQuestions (integrated).
No problems walking through all the steps for a local account.

Not sure why your image doesn't work, unless it's related to unattended settings.
 
The problem is it that if I add the.reg files to the Registry section of NTLite, I can not complete the installation, just look at the first post.

Right - but using Entreprise version why not make it work via GPO instead of a reg?
It should work on both 10/ 11 according to this.
 
Last edited:
Back
Top