Windows 11 Imaging, Customization and Deployment

Discussion in 'Windows 11' started by Enthousiast, Jul 1, 2021.

  1. Ace2

    Ace2 MDL Expert

    Oct 10, 2014
    1,857
    1,520
    60
  2. geepnozeex

    geepnozeex MDL Junior Member

    Oct 21, 2014
    81
    79
    0
  3. geepnozeex

    geepnozeex MDL Junior Member

    Oct 21, 2014
    81
    79
    0
    #84 geepnozeex, Dec 13, 2021
    Last edited: Jun 5, 2022
    abbodi1406
    sorry, now I understand what it was about.
     
  4. Ace2

    Ace2 MDL Expert

    Oct 10, 2014
    1,857
    1,520
    60
    #85 Ace2, Dec 14, 2021
    Last edited: Dec 17, 2021
    for_removal.cmd [Last edit, updated for_removal.cmd]
    Code:
    @echo off
    
    set mountdir=c:\mount
    
    setlocal enabledelayedexpansion
    
    reg load HKLM\SOFTWAR !MOUNTDIR!\Windows\System32\config\SOFTWARE
    
    for %%0 in (
       OneDrive
    ) do (
    PowerShell -C "SP -Path 'HKLM:\SOFTWAR\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\*%%0*' -Name Visibility -Value 1 -Force -EA 0"
    PowerShell -C "SP -Path 'HKLM:\SOFTWAR\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\*%%0*' -Name DefVis -Value 2 -Force -EA 0"
    PowerShell -C "RD -Path 'HKLM:\SOFTWAR\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\*%%0*' -Include *Owner* -Recurse -Force -EA 0"
    PowerShell -C "Get-ChildItem -Path 'HKLM:\SOFTWAR\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\*%%0*' -Name | "clip" | notepad.exe for_removal.cmd | reg unload HKLM\SOFTWAR"
    
    reg unload HKLM\SOFTWAR
    cls
    
    )
    for %%0 in (
    
    
    ) do (
    dism /image:!MOUNTDIR! /remove-package /packagename:"%%0"
    
    )
    echo off | clip
    
    endlocal
    
    pause
    HOW:
    Code:
    Run for_removal.cmd as Administrator, when for_removal.cmd pops open.
    
    Goto
    
    )
    for %%0 in (
    Select Paste Here - Close and Save for_removal.cmd
    
    
    ) do (
    dism /image:!MOUNTDIR! /remove-package /packagename:"%%0"
    Results:
    Code:
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.1
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Removing package Microsoft-Windows-OneDrive-Setup-Package~31bf3856ad364e35~amd64~en-US~10.0.19041.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.1
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Removing package Microsoft-Windows-OneDrive-Setup-Package~31bf3856ad364e35~amd64~~10.0.19041.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.1
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Removing package Microsoft-Windows-OneDrive-Setup-WOW64-Package~31bf3856ad364e35~amd64~en-US~10.0.19041.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.1
    
    Image Version: 10.0.19041.1
    
    Processing 1 of 1 - Removing package Microsoft-Windows-OneDrive-Setup-WOW64-Package~31bf3856ad364e35~amd64~~10.0.19041.1
    [==========================100.0%==========================]
    The operation completed successfully.
     
  5. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,647
    103,299
    450
    Updated the OP with new uploads on opendir:)
     
  6. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,184
    90,641
    340
  7. geepnozeex

    geepnozeex MDL Junior Member

    Oct 21, 2014
    81
    79
    0
    #89 geepnozeex, Jun 5, 2022
    Last edited: Apr 21, 2023
    Hi.
    Does anyone know why the UWP SecHealthUI & AppInstaller cannot be removed from the mounted windows 11 image? there will be an error.
    But if you remove AppInstaller from under windows 10, then everything is deleted well.
     
  8. geepnozeex

    geepnozeex MDL Junior Member

    Oct 21, 2014
    81
    79
    0
    #90 geepnozeex, Jun 6, 2022
    Last edited: Mar 6, 2023
    removing packages from the offline image, without the full package name. (analog of use install_wim_tweak.exe)
    Code:
    Dism /Mount-Wim /WimFile:C:\WORK\install.wim /index:4 /MountDir:C:\WORK\Mount
    Reg load HKLM\Custom C:\WORK\Mount\Windows\System32\Config\Software
    Powershell "SP 'HKLM:\Custom\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\*OneDrive*' Visibility -V 1"
    Powershell "RD 'HKLM:\Custom\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\*OneDrive*' -Include Owners -Recurse"
    for /f "tokens=8 delims=\" %%I in ('reg query "HKLM\Custom\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages" /f OneDrive') do call:VAR %%I
    Reg unload HKLM\Custom
    for %%I in (%Packs%) do Dism /image:C:\WORK\Mount /Remove-Package /PackageName:%%I
    Dism /Unmount-Wim /MountDir:C:\WORK\Mount /commit
    :VAR
    set Packs=%Packs% %~1
    exit /b
    
     
  9. no, they're not released by Microsoft yet
     
  10. gareths

    gareths MDL Senior Member

    Jun 5, 2017
    469
    128
    10
    Has anyone got the RDX ISO X22-62162 as I'm collecting all the Windows 11 isos.
     
  11. steven4554

    steven4554 MDL Expert

    Jul 12, 2009
    1,499
    2,800
    60
    #97 steven4554, Aug 17, 2022
    Last edited: Dec 18, 2024
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. vigipirate

    vigipirate MDL Senior Member

    Feb 24, 2011
    396
    97
    10
    addom WinPE ?
     
  13. Sir anyway to remove Edge Chromium from offline image via same script of yours.
     
  14. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,184
    90,641
    340
    added InboxApps.iso & CLIENT_LOF_PACKAGES_OEM.iso
    thanks to @DiamondMon