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
    564
    264
    30
    #81 TesterMachineOS, Nov 7, 2024
    Last edited: Nov 7, 2024
    I have performed a second test on another PC.
    It has Windows 10 IoT Enterprise LTSC 2021 (21H2 build 19044.2965) x64 installed.

    I also get errors:
    Code:
    **********************
    Inicio de la transcripción de Windows PowerShell
    Hora de inicio: 20241107130036
    Nombre de usuario: DESKTOP-2KN460M\MxCount
    Usuario RunAs: DESKTOP-2KN460M\MxCount
    Nombre de la configuración:
    Máquina: DESKTOP-2KN460M (Microsoft Windows NT 10.0.19044.0)
    Aplicación host: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
    Id. de proceso: 1068
    PSVersion: 5.1.19041.2673
    PSEdition: Desktop
    PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.19041.2673
    BuildVersion: 10.0.19041.2673
    CLRVersion: 4.0.30319.42000
    WSManStackVersion: 3.0
    PSRemotingProtocolVersion: 2.3
    SerializationVersion: 1.1.0.1
    **********************
    La transcripción ha comenzado. El archivo de salida es C:\Win11LiteCreatorV3\Win11LiteV3.log
    Welcome to the Win11 Lite image creator Release: 30-10-24
    Copying Windows image...
    Copy complete!
    Getting image information:
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Details for image : C:\Win11Lite\sources\install.wim
    
    Index : 1
    Name : Windows 11 Home
    Description : Windows 11 Home
    Size : 19.466.199.244 bytes
    
    Index : 2
    Name : Windows 11 Home N
    Description : Windows 11 Home N
    Size : 18.781.646.719 bytes
    
    Index : 3
    Name : Windows 11 Home Single Language
    Description : Windows 11 Home Single Language
    Size : 19.445.940.337 bytes
    
    Index : 4
    Name : Windows 11 Education
    Description : Windows 11 Education
    Size : 19.856.635.568 bytes
    
    Index : 5
    Name : Windows 11 Education N
    Description : Windows 11 Education N
    Size : 19.175.536.249 bytes
    
    Index : 6
    Name : Windows 11 Pro
    Description : Windows 11 Pro
    Size : 19.859.313.076 bytes
    
    Index : 7
    Name : Windows 11 Pro N
    Description : Windows 11 Pro N
    Size : 19.177.826.124 bytes
    
    Index : 8
    Name : Windows 11 Pro Education
    Description : Windows 11 Pro Education
    Size : 19.856.585.778 bytes
    
    Index : 9
    Name : Windows 11 Pro Education N
    Description : Windows 11 Pro Education N
    Size : 19.175.485.559 bytes
    
    Index : 10
    Name : Windows 11 Pro for Workstations
    Description : Windows 11 Pro for Workstations
    Size : 19.856.610.673 bytes
    
    Index : 11
    Name : Windows 11 Pro N for Workstations
    Description : Windows 11 Pro N for Workstations
    Size : 19.175.510.904 bytes
    
    The operation completed successfully.
    Mounting Windows image. This may take a while.
    
    CORRECTO: el archivo (o carpeta): "C:\Win11Lite\sources\install.wim" ahora es propiedad del usuario "DESKTOP-2KN460M\MxCount".
    archivo procesado: C:\Win11Lite\sources\install.wim
    Se procesaron correctamente 1 archivos; error al procesar 0 archivos
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    Default system UI language code: es-ES
    Architecture: amd64
    Mounting complete! Performing removal of applications...
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22631.4317
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22631.4317
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22631.4317
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22631.4317
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22631.4317
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22631.4317
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22631.4317
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22631.4317
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22631.4317
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22631.4317
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22631.4317
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22631.4317
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22631.4317
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22631.4317
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22631.4317
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22631.4317
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22631.4317
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22631.4317
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22631.4317
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22631.4317
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22631.4317
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22631.4317
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22631.4317
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22631.4317
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22631.4317
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22631.4317
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22631.4317
    
    The operation completed successfully.
    Loading registry...
    if you have little errors you can ignore safety
    Bypassing system requirements(on the system image):
    Disabling DIAGTRACK aka Diagnostic Tracking Service and PCA Service >used for ask if software installed correctly
    Disabling Bitlocker Forced Encryption and Autoreboot if bluescreen
    Enable Legacy Driver install Change value 0 to 1 to disable
    Disabling Os Update During OOBE
    Script to restore update after OOBE
    Disabling Sponsored Apps:
    Disable Send FEEDBACK
    Disable Reserved Storage
    Disable DevHome and News Outlook autoinstall
    Enabling CUSTOM PRIVACY and Tweaks
    Enabling windows 11 edu theme
    Enabling Delay of 365 days for Features update aka 23h2 to 24h2 , works for Education or enterprise only
    Enabling Delay of 7 days after Microsoft release update any sku aka edition, Windows 11 pro minimum required
    Enabling Local Accounts on OOBE:
    Disabling Reserved Storage:
    Disabling Chat icon:
    Disabling Telemetry:
    False
    Excepción al llamar a "OpenSubKey" con los argumentos "3": "Acceso denegado al Registro solicitado."
    En C:\Win11LiteCreatorV3\Win11LiteCreatorV3.ps1: 376 Carácter: 1
    + $regKey = [Microsoft.Win32.Registry]::LocalMachine.OpenSubKey("zSOFTW ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : SecurityException
    Excepción al llamar a "OpenSubKey" con los argumentos "3": "Acceso denegado al Registro solicitado."
    En C:\Win11LiteCreatorV3\Win11LiteCreatorV3.ps1: 376 Carácter: 1
    + $regKey = [Microsoft.Win32.Registry]::LocalMachine.OpenSubKey("zSOFTW ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : SecurityException
    
    No se puede llamar a un método en una expresión con valor NULL.
    En C:\Win11LiteCreatorV3\Win11LiteCreatorV3.ps1: 377 Carácter: 1
    + $regACL = $regKey.GetAccessControl()
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : InvokeMethodOnNull
    No se puede llamar a un método en una expresión con valor NULL.
    En C:\Win11LiteCreatorV3\Win11LiteCreatorV3.ps1: 377 Carácter: 1
    + $regACL = $regKey.GetAccessControl()
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : InvokeMethodOnNull
    
    No se puede llamar a un método en una expresión con valor NULL.
    En C:\Win11LiteCreatorV3\Win11LiteCreatorV3.ps1: 378 Carácter: 1
    + $regACL.SetOwner($adminGroup)
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : InvokeMethodOnNull
    No se puede llamar a un método en una expresión con valor NULL.
    En C:\Win11LiteCreatorV3\Win11LiteCreatorV3.ps1: 378 Carácter: 1
    + $regACL.SetOwner($adminGroup)
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : InvokeMethodOnNull
    
    No se puede llamar a un método en una expresión con valor NULL.
    En C:\Win11LiteCreatorV3\Win11LiteCreatorV3.ps1: 379 Carácter: 1
    + $regKey.SetAccessControl($regACL)
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : InvokeMethodOnNull
    No se puede llamar a un método en una expresión con valor NULL.
    En C:\Win11LiteCreatorV3\Win11LiteCreatorV3.ps1: 379 Carácter: 1
    + $regKey.SetAccessControl($regACL)
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : InvokeMethodOnNull
    
    No se puede llamar a un método en una expresión con valor NULL.
    En C:\Win11LiteCreatorV3\Win11LiteCreatorV3.ps1: 380 Carácter: 1
    + $regKey.Close()
    + ~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : InvokeMethodOnNull
    No se puede llamar a un método en una expresión con valor NULL.
    En C:\Win11LiteCreatorV3\Win11LiteCreatorV3.ps1: 380 Carácter: 1
    + $regKey.Close()
    + ~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : InvokeMethodOnNull
    
    Owner changed to Administrators.
    Excepción al llamar a "OpenSubKey" con los argumentos "3": "Acceso denegado al Registro solicitado."
    En C:\Win11LiteCreatorV3\Win11LiteCreatorV3.ps1: 382 Carácter: 1
    + $regKey = [Microsoft.Win32.Registry]::LocalMachine.OpenSubKey("zSOFTW ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : SecurityException
    Excepción al llamar a "OpenSubKey" con los argumentos "3": "Acceso denegado al Registro solicitado."
    En C:\Win11LiteCreatorV3\Win11LiteCreatorV3.ps1: 382 Carácter: 1
    + $regKey = [Microsoft.Win32.Registry]::LocalMachine.OpenSubKey("zSOFTW ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : SecurityException
    
    No se puede llamar a un método en una expresión con valor NULL.
    En C:\Win11LiteCreatorV3\Win11LiteCreatorV3.ps1: 383 Carácter: 1
    + $regACL = $regKey.GetAccessControl()
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : InvokeMethodOnNull
    No se puede llamar a un método en una expresión con valor NULL.
    En C:\Win11LiteCreatorV3\Win11LiteCreatorV3.ps1: 383 Carácter: 1
    + $regACL = $regKey.GetAccessControl()
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : InvokeMethodOnNull
    
    No se puede llamar a un método en una expresión con valor NULL.
    En C:\Win11LiteCreatorV3\Win11LiteCreatorV3.ps1: 385 Carácter: 1
    + $regACL.SetAccessRule($regRule)
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : InvokeMethodOnNull
    No se puede llamar a un método en una expresión con valor NULL.
    En C:\Win11LiteCreatorV3\Win11LiteCreatorV3.ps1: 385 Carácter: 1
    + $regACL.SetAccessRule($regRule)
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : InvokeMethodOnNull
    
    No se puede llamar a un método en una expresión con valor NULL.
    En C:\Win11LiteCreatorV3\Win11LiteCreatorV3.ps1: 386 Carácter: 1
    + $regKey.SetAccessControl($regACL)
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : InvokeMethodOnNull
    No se puede llamar a un método en una expresión con valor NULL.
    En C:\Win11LiteCreatorV3\Win11LiteCreatorV3.ps1: 386 Carácter: 1
    + $regKey.SetAccessControl($regACL)
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : InvokeMethodOnNull
    
    Permissions modified for Administrators group.
    Registry key permissions successfully updated.
    No se puede llamar a un método en una expresión con valor NULL.
    En C:\Win11LiteCreatorV3\Win11LiteCreatorV3.ps1: 389 Carácter: 1
    + $regKey.Close()
    + ~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : InvokeMethodOnNull
    No se puede llamar a un método en una expresión con valor NULL.
    En C:\Win11LiteCreatorV3\Win11LiteCreatorV3.ps1: 389 Carácter: 1
    + $regKey.Close()
    + ~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : InvokeMethodOnNull
    
    Deleting Application Compatibility Appraiser
    Deleting Customer Experience Improvement Program
    Deleting Program Data Updater
    Deleting autochk proxy
    Deleting QueueReporting
    Tweaking complete!
    Unmounting Registry...
    No se puede llamar a un método en una expresión con valor NULL.
    En C:\Win11LiteCreatorV3\Win11LiteCreatorV3.ps1: 406 Carácter: 1
    + $regKey.Close()
    + ~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : InvokeMethodOnNull
    No se puede llamar a un método en una expresión con valor NULL.
    En C:\Win11LiteCreatorV3\Win11LiteCreatorV3.ps1: 406 Carácter: 1
    + $regKey.Close()
    + ~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : InvokeMethodOnNull
    
    La operación se completó correctamente.
    Cleaning up image...
    Cleanup complete.
    
    Unmounting image...
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    Exporting image...
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Exporting image
    [                           1.0%                           ]
    
    I really don't know, I don't understand why these errors, for now I think I won't be able to use the script as it is, I will use the previous versions of this post Win11 Bypass V7..

    I can't get this to work...

    NOTE:
    An error I found when loading some Windows registry files:

    Code:
    reg load HKLM\zCOMPONENTS $ScratchDisk\scratchdir\Windows\System32\config\COMPONENTS >null
    reg load HKLM\zDEFAULT $ScratchDisk\scratchdir\Windows\System32\config\default >null
    reg load HKLM\zNTUSER $ScratchDisk\scratchdir\Users\Default\ntuser.dat >null
    reg load HKLM\zSOFTWARE $ScratchDisk\scratchdir\Windows\System32\config\SOFTWARE >null
    reg load HKLM\zSYSTEM $ScratchDisk\scratchdir\Windows\System32\config\SYSTEM >null
    
    When downloading or undocking the loaded Windows registry files:
    Code:
    reg unload HKLM\zCOMPONENTS >null
    reg unload HKLM\zDRIVERS >null
    reg unload HKLM\zDEFAULT >null
    reg unload HKLM\zNTUSER >null
    reg unload HKLM\zSCHEMA >null
    reg unload HKLM\zSOFTWARE
    reg unload HKLM\zSYSTEM >null
    During the script process zDRIVERS and zSCHEMA are never loaded

    That is why errors appear, that is why I am saying and I apologize for my insistence, please review this, verify the script.
     
  2. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,325
    2,506
    120
    #82 pm67310, Nov 7, 2024
    Last edited: Nov 10, 2024
    (OP)
    try fixed v4

    or


    PASSWORD MDL2024

    Code:
    **********************
    Début de la transcription Windows PowerShell
    Heure de début : 20241107222827
    Nom d'utilisateur : DESKTOP-4F77QTF\admin
    Utilisateur runAs :  DESKTOP-4F77QTF\admin
    Nom de la configuration :
    Ordinateur : DESKTOP-4F77QTF (Microsoft Windows NT 10.0.19044.0)
    Application hôte : PowerShell.exe -Command if((Get-ExecutionPolicy ) -ne 'AllSigned') { Set-ExecutionPolicy -Scope Process Bypass }; & 'C:\Users\admin\Desktop\tiny11builder-main\Win11LiteCreatorV3\Win11LiteCreatorV4.ps1'
    ID de processus : 5180
    PSVersion: 5.1.19041.5007
    PSEdition: Desktop
    PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.19041.5007
    BuildVersion: 10.0.19041.5007
    CLRVersion: 4.0.30319.42000
    WSManStackVersion: 3.0
    PSRemotingProtocolVersion: 2.3
    SerializationVersion: 1.1.0.1
    **********************
    Transcription démarrée, le fichier de sortie est C:\Users\admin\Desktop\tiny11builder-main\Win11LiteCreatorV3\Win11LiteV4.log
    Welcome to the Win11 Lite image creator Release: 07-11-24
    Copying Windows image...
    Copy complete!
    Getting image information:
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.3636
    
    Details for image : C:\Win11Lite\sources\install.wim
    
    Index : 1
    Name : Windows 11 Pro
    Description : Windows 11 Pro
    Size : 20 586 613 603 bytes
    
    The operation completed successfully.
    Mounting Windows image. This may take a while.
    
    Opération réussie : le fichier (ou dossier) : "C:\Win11Lite\sources\install.wim" appartient désormais à l’utilisateur "D
    ESKTOP-4F77QTF\admin".
    fichier traité : C:\Win11Lite\sources\install.wim
    1 fichiers correctement traités ; échec du traitement de 0 fichiers
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.3636
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    Default system UI language code: es-ES
    Architecture: amd64
    Mounting complete! Performing removal of applications...
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.3636
    
    Image Version: 10.0.26100.2033
    
    The operation completed successfully.
    ...
    
    The operation completed successfully.
    Loading registry...
    if you have little errors you can ignore safety
    Bypassing system requirements(on the system image):
    Disabling DIAGTRACK aka Diagnostic Tracking Service and PCA Service >used for ask if software installed correctly
    Disabling Bitlocker Forced Encryption and Autoreboot if bluescreen
    Enable Legacy Driver install Change value 0 to 1 to disable
    Disabling Os Update During OOBE
    Script to restore update after OOBE
    Disabling Sponsored Apps:
    Disable Send FEEDBACK
    Disable Reserved Storage
    Disable DevHome and News Outlook autoinstall
    Enabling CUSTOM PRIVACY and Tweaks
    Enabling windows 11 edu theme
    Enabling Delay of 365 days for Features update aka 23h2 to 24h2 , works for Education or enterprise only
    Enabling Delay of 7 days after Microsoft release update any sku aka edition, Windows 11 pro minimum required
    Enabling Local Accounts on OOBE:
    Disabling Reserved Storage:
    Disabling Chat icon:
    Disabling Telemetry:
    True
    Owner changed to Administrators.
    Permissions modified for Administrators group.
    Registry key permissions successfully updated.
    Deleting Application Compatibility Appraiser
    Deleting Customer Experience Improvement Program
    Deleting Program Data Updater
    Deleting autochk proxy
    Deleting QueueReporting
    Tweaking complete!
    Unmounting Registry...
    Cleaning up image...
    Cleanup complete.
    
    Unmounting image...
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.3636
    
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    Exporting image...
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.3636
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    Windows image completed. Continuing with boot.wim.
    Mounting boot image:
    fichier traité : C:\Win11Lite\sources\boot.wim
    1 fichiers correctement traités ; échec du traitement de 0 fichiers
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.3636
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    Loading registry...
    L’opération a réussi.
    L’opération a réussi.
    L’opération a réussi.
    L’opération a réussi.
    Bypassing system requirements(on the setup image):
    Tweaking complete!
    Unmounting Registry...
    Unmounting image...
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.3636
    
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    The Win11Lite image is now completed. Proceeding with the making of the ISO...
    Creating ISO image...
    ADK folder not found. Will be using bundled oscdimg.exe.
    oscdimg.exe already exists locally.
    
    OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility
    Copyright (C) Microsoft, 1993-2012. All rights reserved.
    Licensed only for producing Microsoft authorized content.
    
    
    Scanning source tree (1000 files in 97 directories)
    Scanning source tree complete (1058 files in 103 directories)
    
    Computing directory information complete
    
    Image file is 4415422464 bytes (before optimization)
    
    Writing 1058 files in 103 directories to C:\Users\admin\Desktop\tiny11builder-main\Win11LiteCreatorV3\Win11LiteV4.iso
    
    100% complete
    
    Storage optimization saved 66 files, 15831040 bytes (1% of image)
    
    After optimization, image file is 4402098176 bytes
    Space saved because of embedding, sparseness or optimization = 15831040
    
    Done.
    Creation completed! Press any key to exit the script...
    
    Performing Cleanup...
    **********************
    Fin de la transcription Windows PowerShell
    Heure de fin : 20241107225748
    **********************
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. wuliyen

    wuliyen MDL Novice

    Oct 6, 2009
    14
    4
    0
    Two Write-Host “Disable Reserved Storage”
     
  4. TesterMachineOS

    TesterMachineOS MDL Addicted

    Apr 20, 2021
    564
    264
    30
    I also noticed this, except that one has more code than the other.
     
  5. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,325
    2,506
    120
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,325
    2,506
    120
    Yes later we need to go to works
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. TesterMachineOS

    TesterMachineOS MDL Addicted

    Apr 20, 2021
    564
    264
    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:

  8. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,325
    2,506
    120
    don't worry, sharing is important
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,325
    2,506
    120
    V4c added onedrive setting , disable recall ,

    News V5 coming ... ( disable office telemetry 2016 up to 365 and keep all features ) , and litle privacy for chrome and edge
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,325
    2,506
    120
    If you have suggestion you are welcome
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. TesterMachineOS

    TesterMachineOS MDL Addicted

    Apr 20, 2021
    564
    264
    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
     
  12. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,325
    2,506
    120
    #94 pm67310, Nov 16, 2024
    Last edited: Nov 16, 2024
    (OP)
    Strange because not error for me ... to investigate

    ContentDeliveryManager seem to break or prevent Microsoft Store from working properly.....

    => Can you explain your problem
    Related to windows store ?

    And its a clean install or upgrade ?

    You use others debloater or script ?

    You use custom dns or software like adguard home or pi-hole ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. TesterMachineOS

    TesterMachineOS MDL Addicted

    Apr 20, 2021
    564
    264
    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
     
  14. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,325
    2,506
    120
    #96 pm67310, Nov 16, 2024
    Last edited: Nov 16, 2024
    (OP)
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. TesterMachineOS

    TesterMachineOS MDL Addicted

    Apr 20, 2021
    564
    264
    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.
     
  16. TesterMachineOS

    TesterMachineOS MDL Addicted

    Apr 20, 2021
    564
    264
    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.
     
  17. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,325
    2,506
    120
    News version coming this days
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...