Script Create Win11 Version no ADS, Bypass Requirement, Remove Useless APPS, Any Language / Edition

Discussion in 'Windows 11' started by pm67310, Jul 3, 2022.

Tags:
  1. TesterMachineOS

    TesterMachineOS MDL Addicted

    Apr 20, 2021
    693
    441
    30
    I also noticed this, except that one has more code than the other.
     
  2. TesterMachineOS

    TesterMachineOS MDL Addicted

    Apr 20, 2021
    693
    441
    30
    @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. :)
     

    Attached Files:

  3. TesterMachineOS

    TesterMachineOS MDL Addicted

    Apr 20, 2021
    693
    441
    30
    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
     
  4. TesterMachineOS

    TesterMachineOS MDL Addicted

    Apr 20, 2021
    693
    441
    30
    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
     
  5. TesterMachineOS

    TesterMachineOS MDL Addicted

    Apr 20, 2021
    693
    441
    30
    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.
     
  6. TesterMachineOS

    TesterMachineOS MDL Addicted

    Apr 20, 2021
    693
    441
    30
    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.
     
  7. Textaar

    Textaar MDL Novice

    Nov 25, 2024
    45
    29
    0
    The system I intend to use the ISO for, doesn't support POPCNT or SSE4.2, so 24H2 wouldn't work.
     
  8. JeepWillys58

    JeepWillys58 MDL Addicted

    Nov 6, 2010
    608
    385
    30
    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:
    upload_2024-12-12_21-41-46.png

    Error:

    upload_2024-12-12_21-39-34.png

    Below is also the .log file.

    Thanks in advanced.

    Best Regards.
    @JeepWillys58
     

    Attached Files:

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. TesterMachineOS

    TesterMachineOS MDL Addicted

    Apr 20, 2021
    693
    441
    30
    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.
     
  10. JeepWillys58

    JeepWillys58 MDL Addicted

    Nov 6, 2010
    608
    385
    30
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. TesterMachineOS

    TesterMachineOS MDL Addicted

    Apr 20, 2021
    693
    441
    30
    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.
     
  12. JeepWillys58

    JeepWillys58 MDL Addicted

    Nov 6, 2010
    608
    385
    30
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. 2012mshs

    2012mshs MDL Junior Member

    Aug 13, 2015
    73
    125
    0
    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
     
  14. JeepWillys58

    JeepWillys58 MDL Addicted

    Nov 6, 2010
    608
    385
    30
    #78 JeepWillys58, Dec 13, 2024
    Last edited: Dec 13, 2024
    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...

    upload_2024-12-13_11-27-10.png

    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
    
    upload_2024-12-13_11-32-1.png

    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.

    upload_2024-12-13_11-47-27.png
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. JeepWillys58

    JeepWillys58 MDL Addicted

    Nov 6, 2010
    608
    385
    30
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. 2012mshs

    2012mshs MDL Junior Member

    Aug 13, 2015
    73
    125
    0
    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)