@pm67310 I have created a version of your script but in batch.. Just for you to review, I hope it is not a bother, I like using batch scripts more than powershell. It has almost the same settings as your script, only I omitted a value that was the cause in 23h2 of "invalid parameter error" apparently the value is not present in 23h2 but it is in 24h2. I think that using batch you are less prone to errors, the only thing that is not in batch is in the app removal section, this is executed in powershell.
I've noticed that in 23H2 the settings made in ContentDeliveryManager seem to break or prevent Microsoft Store from working properly. For now I have not been able to locate which entry is causing this problem. ScriptV4
I just used the downloaded iso from massgrave windows 11 23h2. After this the iso is created but when testing in a virtual machine, I get errors in the task scheduler about the lack of certain tasks such as "QueueReporting". Then when trying to open the Microsoft store it freezes for a moment and then shows an error that only shows the "reload" option but otherwise it does not open completely. The lines I removed to make it work were the following: Code: reg add "HKLM\zNTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "OemPreInstalledAppsEnabled" /t REG_DWORD /d "0" /f >nul reg add "HKLM\zNTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "PreInstalledAppsEnabled" /t REG_DWORD /d "0" /f >nul reg add "HKLM\zNTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SilentInstalledAppsEnabled" /t REG_DWORD /d "0" /f >nul reg add "HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "ContentDeliveryAllowed" /t REG_DWORD /d "0" /f >nul reg add "HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "ContentDeliveryAllowed" /t REG_DWORD /d "0" /f >nul reg add "HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "FeatureManagementEnabled" /t REG_DWORD /d "0" /f >nul reg add "HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "OemPreInstalledAppsEnabled" /t REG_DWORD /d "0" /f >nul reg add "HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "PreInstalledAppsEnabled" /t REG_DWORD /d "0" /f >nul reg add "HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "PreInstalledAppsEverEnabled" /t REG_DWORD /d "0" /f >nul reg add "HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SilentInstalledAppsEnabled" /t REG_DWORD /d "0" /f >nul reg add "HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SoftLandingEnabled" /t REG_DWORD /d "0" /f>nul reg add "HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContentEnabled" /t REG_DWORD /d "0" /f >nul reg add "HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-310093Enabled" /t REG_DWORD /d "0" /f >nul reg add "HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338388Enabled" /t REG_DWORD /d "0" /f >nul reg add "HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338389Enabled" /t REG_DWORD /d "0" /f >nul reg add "HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338393Enabled" /t REG_DWORD /d "0" /f >nul reg add "HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-353694Enabled" /t REG_DWORD /d "0" /f >nul reg add "HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-353696Enabled" /t REG_DWORD /d "0" /f >nul reg add "HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContentEnabled" /t REG_DWORD /d "0" /f >nul reg add "HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SystemPaneSuggestionsEnabled" /t REG_DWORD /d "0" /f >nul
I remember that this problem happened to me when I modified values in content delivery manager.. I think the value "SilentInstalledAppsEnabled" causes this problem, but I haven't tested it, I will test this later to verify.
Ok, I have some old notes here about old Tweaks for Windows 11 22H2, and if these options that I marked in a reg file were the options that prevented the Microsoft Store from working (only tested in 22H2) I haven't had time to test this in 23H2, but I can assume it's the same. Code: ;"OemPreInstalledAppsEnabled"=dword:00000000 ;"PreInstalledAppsEnabled"=dword:00000000 ;"PreInstalledAppsEverEnabled"=dword:00000000 I remember discovering this flaw, since I applied these same scripts in Windows 10, but in Windows 11 21h2+ the process seems to be different.
Hi dear friend @pm6731 I tried using your Win11LiteCreatorV5 with Windows 11, version 23H2 (22631.4602) amd64, index 2,22631.4602,x64,pt-BR,ProfessionalWorkstation that I downloaded from uupdump.net today, but both times I tried it, the same error occurred after the installation restart the first time, as reported by our friends above, can you tell me what is happening? uupdump.net-download.php?id=0c36c0e6-8397-424d-b460-26cc0d044c7f&pack=pt-br&edition=professional Windows 11, version 23H2 (22631.4602) amd64 => DISM Info: Error: Below is also the .log file. Thanks in advanced. Best Regards. @JeepWillys58
As I see it, it seems that some registry entry is causing the failure, it seems to be touching some sensitive parts of the system.
Hi dear friend @TesterMachineOS I owe you, I'm sorry, but I'm working from 10pm to 6am and I had a day off today, let me know if you still need those files and I'll upload them for you tomorrow morning. Best Regards. @JeepWillys58
Don't worry , everything in its time, I haven't had time lately either, I've been a bit busy. But as for the script here from our friend pm6731, I'll check to see if I can help solve these problems.
Code: Write-Host "ADD and Change time.windows.com to pool.ntp.org better time sync" & 'reg' 'add' 'HKLM\zSYSTEM\CurrentControlSet\Services\W32Time\Parameters' '/v' 'NtpServer' '/t' 'REG_SZ' '/d' 'pool.ntp.org,0x9' '/f' >null correct: CurrentControlSet=>ControlSet001
Hi dear friends @pm67310 and @2012mshs @pm67310 that's the result of run the same V5 with a small path D:\W11LiteV5... The same error again... Thanks @2012mshs for to help! I'm changing the code as you say and will run the script again. New Code changed: Code: Write-Host "ADD and Change time.windows.com to pool.ntp.org better time sync" & 'reg' 'add' 'HKLM\zSYSTEM\ControlSet001\Services\W32Time\Parameters' '/v' 'NtpServer' '/t' 'REG_SZ' '/d' 'pool.ntp.org,0x9' '/f' >null Thanks in advanced again. Regards Edit: A small comment about the script execution, dear friend @pm67310. Can you tell me if it is normal for the script to use all the processor when it is running, because it uses almost 90% of my old i5-7400? Especially when it is exporting the image at the end of the process.
Hi again dear friends @2012mshs and @pm67310!!! Thanks one more time for your modification code dear @2012mshs it works great! Dear friend @pm67310 I tested again now and I didn't get any errors this time, I think the code modification proposed by our friend @2012mshs fixed the problem correctly, but the CPU usage remains high, especially at the end of the process. I would like to take this opportunity to wish you an excellent end of the year and a new year full of new achievements. Best Regards
You should edit this line Code: & 'dism' '/English' '/Export-Image' "/SourceImageFile:$ScratchDisk\Win11Lite\sources\install.wim" "/SourceIndex:$index" "/DestinationImageFile:$ScratchDisk\Win11Lite\sources\install2.wim" '/compress:recovery' Compress:recovery (esd => use more cpu, small file) => to Compress:max (wim, larger esd, use less cpu, no need decompress)