Optimize-Offline Guide - Windows Debloating Tool, Windows 1803, 1903, 19H2, 1909, 20H1 and LTSC 2019

Discussion in 'Windows 10' started by KedarWolf, Jul 30, 2019.

  1. zbigniew59

    zbigniew59 MDL Senior Member

    May 14, 2016
    373
    171
    10
  2. strotee

    strotee MDL Member

    Jan 30, 2011
    229
    205
    10
  3. zbigniew59

    zbigniew59 MDL Senior Member

    May 14, 2016
    373
    171
    10
    Debloating - Windows_InsiderPreview_Server_vNext_pl-pl_25075.iso

    Removal - "Microsoft.AAD.BrokerPlugin" - causes a failure Windows Explorer.
    More and more dependencies. :mad:
    What does the office 365 have a common with explorer in the server system?
     
  4. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    874
    30
    I checked on 22572.201.220n308-1153.NI_RELEASE_SVC_PROD2_CLIENTMULTI_X64FRE_EN-US.ISO with "Microsoft.AAD.BrokerPlugin" removed and File Explorer is working, but can confirm it's broken on Windows_InsiderPreview_Server_vNext_en-us_25075.iso with "Microsoft.AAD.BrokerPlugin" removed.
     
  5. Mavericks Choice

    Mavericks Choice MDL Guru

    Aug 5, 2015
    3,356
    13,996
    120
    Lads receiving this error:
    Code:
    Index     : 0
    Exception : Cannot bind argument to parameter 'Message' because it is an empty string.
    Category  : InvalidData: (:) [Write-Log], ParameterBindingValidationException
    ErrorID   : ParameterArgumentValidationErrorEmptyStringNotAllowed,Write-Log
    Target    :
    Command   : Log $OptimizeData.DisableDefender
     
  6. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    874
    30
    No errors for me on Windows 11 IOT 22000 with the latest commits downloaded.
     
  7. zbigniew59

    zbigniew59 MDL Senior Member

    May 14, 2016
    373
    171
    10
    #1767 zbigniew59, Mar 24, 2022
    Last edited: Mar 24, 2022
    Which SystemApps can be safely removed to continue to work updates?
    Now I have only just these app -
    "Microsoft.AccountsControl",
    "Microsoft.AsyncTextService",
    "Microsoft.CredDialogHost",
    "Microsoft.Windows.AppResolverUX",
    "Microsoft.Windows.CapturePicker",
    "Microsoft.Windows.CloudExperienceHost",
    "Microsoft.Windows.StartMenuExperienceHost",
    "Microsoft.Windows.Search",
    "Microsoft.Windows.ShellExperienceHost",
    "MicrosoftWindows.Client.CBS",
    "windows.immersivecontrolpanel",
    "Windows.PrintDialog"

    I integrate with W10UI - and DISM shows a mistake.
    Without removing applications from SystemApps - DISM does not show errors.
    Integrates all updates.

    Which I still need to keep, in order to Dism not showing mistakes?

    And this is my template list -
    "Microsoft.AAD.BrokerPlugin",
    "Microsoft.AccountsControl",
    "Microsoft.AsyncTextService",
    "Microsoft.BioEnrollment",
    "Microsoft.CredDialogHost",
    "Microsoft.ECApp",
    "Microsoft.LockApp",
    "Microsoft.Win32WebViewHost",
    "Microsoft.Windows.AddSuggestedFoldersToLibarayDialog",
    "Microsoft.Windows.AppRep.ChxApp",
    "Microsoft.Windows.AppResolverUX",
    "Microsoft.Windows.CapturePicker",
    "Microsoft.Windows.CloudExperienceHost",
    "Microsoft.Windows.FileExplorer",
    "Microsoft.Windows.FilePicker",
    "Microsoft.Windows.NarratorQuickStart",
    "Microsoft.Windows.OOBENetworkCaptivePortal",
    "Microsoft.Windows.OOBENetworkConnectionFlow",
    "Microsoft.Windows.PeopleExperienceHost",
    "Microsoft.Windows.PinningConfirmationDialog",
    "Microsoft.Windows.Search",
    "Microsoft.Windows.SecHealthUI",
    "Microsoft.Windows.ShellExperienceHost",
    "Microsoft.Windows.StartMenuExperienceHost",
    "Microsoft.Windows.XGpuEjectDialog",
    "MicrosoftWindows.Client.CBS",
    "MicrosoftWindows.UndockedDevKit",
    "Windows.CBSPreview",
    "windows.immersivecontrolpanel",
    "Windows.PrintDialog"
     
  8. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    874
    30
    #1768 KedarWolf, Mar 27, 2022
    Last edited: Mar 27, 2022
    (OP)
    On Windows 11 22000 here's what I keep. DISM works fine. :)

    Code:
    {
        "DisplayName":  [
                            "Microsoft.AccountsControl",
                            "Microsoft.AsyncTextService",
                            "Microsoft.CredDialogHost",
                            "Microsoft.MicrosoftEdge",
                            "Microsoft.MicrosoftEdgeDevToolsClient",
                            "Microsoft.UI.Xaml.CBS",
                            "Microsoft.Win32WebViewHost",
                            "Microsoft.Windows.AppRep.ChxApp",
                            "Microsoft.Windows.AppResolverUX",
                            "Microsoft.Windows.AssignedAccessLockApp",
                            "Microsoft.Windows.CallingShellApp",
                            "Microsoft.Windows.CapturePicker",
                            "Microsoft.Windows.CloudExperienceHost",
                            "Microsoft.Windows.ContentDeliveryManager",
                            "Microsoft.Windows.NarratorQuickStart",
                            "Microsoft.Windows.OOBENetworkCaptivePortal",
                            "Microsoft.Windows.OOBENetworkConnectionFlow",
                            "Microsoft.Windows.PrintQueueActionCenter",
                            "Microsoft.Windows.Search",
                            "Microsoft.Windows.SecureAssessmentBrowser",
                            "Microsoft.Windows.ShellExperienceHost",
                            "Microsoft.Windows.StartMenuExperienceHost",
                            "Microsoft.Windows.XGpuEjectDialog",
                            "Microsoft.XboxGameCallableUI",
                            "MicrosoftWindows.Client.CBS",
                            "MicrosoftWindows.UndockedDevKit",
                            "windows.immersivecontrolpanel",
                            "Windows.PrintDialog"
                        ]
    }
    
    
    Code:
    ============================================================
    Running W10UI v10.17
    ============================================================
    
    ============================================================
    Removing temporary extracted files...
    ============================================================
    
    
    ============================================================
    Extracting .cab files from .msu files...
    ============================================================
    
    
    ============================================================
    Extracting files from update cabinets (.cab)...
    *** This will require some disk space, please be patient ***
    ============================================================
    
    1/5: windows10.0-kb5007575-x64_28e206f7d3a99eb798dfa403e6439dfb5e358e16.cab
    2/5: Windows10.0-KB5011563-x64.cab [LCU]
    3/5: Windows10.0-KB5011576-x64.cab [Setup DU]
    4/5: Windows10.0-KB5011579-x64.cab [WinPE]
    5/5: Windows10.0-KB5011650-x64.cab [SSU]
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1
    
    Image Version: 10.0.22000.556
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_581~31bf3856ad364e35~amd64~~22000.581.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1
    
    Image Version: 10.0.22000.556
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~22000.588.1.7
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Removing temporary extracted files...
    ============================================================
    
    
    ============================================================
       Finished
    ============================================================
    
    
    ============================================================
    System restart is required to complete installation
    ============================================================
    
    
    Press 9 to exit.
    
     
  9. strotee

    strotee MDL Member

    Jan 30, 2011
    229
    205
    10
    #1769 strotee, Mar 30, 2022
    Last edited: Mar 31, 2022
    I would like to remove Edge and not have it installed on a fresh OS installation. Is that in the SystemAppsTemplate file labeled "Microsoft.MicrosoftEdge", & "Microsoft.MicrosoftEdgeDevToolsClient"? Will removing those two be sufficient or is there a better route to take?

    Also, and this may not be related to O-O but how would I then download Chromium or Waterfox? I suppose make a batch to download either but would it be better to use wget or curl? The OS will have zero browsers installed so I'd need to download something. Using iexplore isn't really an option lol, but I'm here to get ideas.

    Edit1: I removed those items using O-O and Edge is still installed. :(
    Edit2: I have a script that uninstalls it completely.
    Edit3: I wrote a script to download Waterfox & Chromium using curl. It makes no sense for the image to install it only to immediately uninstall after a fresh installation so the hunt continues.
     
  10. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    874
    30
    @gdeliana Can we add Run As Ti/Run As Trusted Installer to the Context Menu?

    Here is the code, maybe as an optional tweak.

    Code:
    Windows Registry Editor Version 5.00
    
    ; Context Menu entries to use RunAsTI - lean and mean snippet by AveYo, 2018-2022
    ; [FEATURES]
    ; - innovative HKCU load, no need for reg load / unload ping-pong; programs get the user profile
    ; - sets ownership privileges, high priority, and explorer support; get System if TI unavailable       
    ; - accepts special characters in paths for which default run as administrator fails
    ; - show on the new 11 contextmenu via whitelisted id; plenty other available, f**k needing an app!
    ; 2022.01.28: workaround for 11 release (22000) hindering explorer as TI; fix 7 args
    
    [-HKEY_CLASSES_ROOT\RunAsTI]
    [-HKEY_CLASSES_ROOT\batfile\shell\setdesktopwallpaper]
    [-HKEY_CLASSES_ROOT\cmdfile\shell\setdesktopwallpaper]
    [-HKEY_CLASSES_ROOT\exefile\shell\setdesktopwallpaper]
    [-HKEY_CLASSES_ROOT\mscfile\shell\setdesktopwallpaper]
    [-HKEY_CLASSES_ROOT\Microsoft.PowerShellScript.1\shell\setdesktopwallpaper]
    [-HKEY_CLASSES_ROOT\regfile\shell\setdesktopwallpaper]
    [-HKEY_CLASSES_ROOT\Folder\shell\setdesktopwallpaper]
    [-HKEY_CLASSES_ROOT\Directory\background\shell\extract]
    ; To remove entries, copy paste above into undo_RunAsTI.reg file, then import it
    
    ; RunAsTI on .bat
    [HKEY_CLASSES_ROOT\batfile\shell\setdesktopwallpaper]
    "MUIVerb"="Run as trustedinstaller"
    "HasLUAShield"=""
    "Icon"="powershell.exe,0"
    [HKEY_CLASSES_ROOT\batfile\shell\setdesktopwallpaper\command]
    @="C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -win 1 -nop -c iex((10..39|%%{(gp 'Registry::HKCR\\RunAsTI' $_ -ea 0).$_})-join[char]10); # --%% \"%L\""
    
    ; RunAsTI on .cmd
    [HKEY_CLASSES_ROOT\cmdfile\shell\setdesktopwallpaper]
    "MUIVerb"="Run as trustedinstaller"
    "HasLUAShield"=""
    "Icon"="powershell.exe,0"
    [HKEY_CLASSES_ROOT\cmdfile\shell\setdesktopwallpaper\command]
    @="C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -win 1 -nop -c iex((10..39|%%{(gp 'Registry::HKCR\\RunAsTI' $_ -ea 0).$_})-join[char]10); # --%% \"%L\""
    
    ; RunAsTI on .exe
    [HKEY_CLASSES_ROOT\exefile\shell\setdesktopwallpaper]
    "MUIVerb"="Run as trustedinstaller"
    "HasLUAShield"=""
    "Icon"="powershell.exe,0"
    [HKEY_CLASSES_ROOT\exefile\shell\setdesktopwallpaper\command]
    @="C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -win 1 -nop -c iex((10..39|%%{(gp 'Registry::HKCR\\RunAsTI' $_ -ea 0).$_})-join[char]10); # --%% \"%L\""
    
    ; RunAsTI on .msc
    [HKEY_CLASSES_ROOT\mscfile\shell\setdesktopwallpaper]
    "MUIVerb"="Run as trustedinstaller"
    "HasLUAShield"=""
    "Icon"="powershell.exe,0"
    [HKEY_CLASSES_ROOT\mscfile\shell\setdesktopwallpaper\command]
    @="C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -win 1 -nop -c iex((10..39|%%{(gp 'Registry::HKCR\\RunAsTI' $_ -ea 0).$_})-join[char]10); # --%% \"%L\""
    
    ; RunAsTI on .ps1
    [HKEY_CLASSES_ROOT\Microsoft.PowerShellScript.1\shell\setdesktopwallpaper]
    "MUIVerb"="Run as trustedinstaller"
    "HasLUAShield"=""
    "Icon"="powershell.exe,0"
    [HKEY_CLASSES_ROOT\Microsoft.PowerShellScript.1\shell\setdesktopwallpaper\command]
    @="C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -win 1 -nop -c iex((10..39|%%{(gp 'Registry::HKCR\\RunAsTI' $_ -ea 0).$_})-join[char]10); # --%% powershell -nop -c iex((gc -lit '%L')-join[char]10)"
    
    ; RunAsTI on .reg
    [HKEY_CLASSES_ROOT\regfile\shell\setdesktopwallpaper]
    "MUIVerb"="Import as trustedinstaller"
    "HasLUAShield"=""
    "Icon"="powershell.exe,0"
    [HKEY_CLASSES_ROOT\regfile\shell\setdesktopwallpaper\command]
    @="C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -win 1 -nop -c iex((10..39|%%{(gp 'Registry::HKCR\\RunAsTI' $_ -ea 0).$_})-join[char]10); # --%% regedit /s \"%L\""
    
    ; RunAsTI on Folder
    [HKEY_CLASSES_ROOT\Folder\shell\setdesktopwallpaper]
    "MuiVerb"="Open as trustedinstaller"
    "HasLUAShield"=""
    "Icon"="powershell.exe,0"
    "AppliesTo"="NOT System.ParsingName:=\"::{645FF040-5081-101B-9F08-00AA002F954E}\""
    [HKEY_CLASSES_ROOT\Folder\shell\setdesktopwallpaper\command]
    @="C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -win 1 -nop -c iex((10..39|%%{(gp 'Registry::HKCR\\RunAsTI' $_ -ea 0).$_})-join[char]10); # --%% \"%L\""
    
    ; Open Powershell as trustedinstaller here
    [HKEY_CLASSES_ROOT\Directory\background\shell\extract]
    "MuiVerb"="Powershell as trustedinstaller"
    "HasLUAShield"=""
    "NoWorkingDirectory"=""
    "Position"="Middle"
    "Icon"="powershell.exe,0"
    [HKEY_CLASSES_ROOT\Directory\background\shell\extract\command]
    @="C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -win 1 -nop -c iex((10..39|%%{(gp 'Registry::HKCR\\RunAsTI' $_ -ea 0).$_})-join[char]10); # --%% cmd /c set \"1=%V\"& start powershell -nop -noe -c $host.ui.RawUI.WindowTitle=$(whoami); set-location -lit $env:1"
    
    ; RunAsTI function
    [HKEY_CLASSES_ROOT\RunAsTI]
    "10"="function RunAsTI ($cmd,$arg) { $id='RunAsTI'; $key=\"Registry::HKU\\$(((whoami /user)-split' ')[-1])\\Volatile Environment\"; $code=@'"
    "11"=" $I=[int32]; $M=$I.module.gettype(\"System.Runtime.Interop`Services.Mar`shal\"); $P=$I.module.gettype(\"System.Int`Ptr\"); $S=[string]"
    "12"=" $D=@(); $T=@(); $DM=[AppDomain]::CurrentDomain.\"DefineDynami`cAssembly\"(1,1).\"DefineDynami`cModule\"(1); $Z=[uintptr]::size "
    "13"=" 0..5|% {$D += $DM.\"Defin`eType\"(\"AveYo_$_\",1179913,[ValueType])}; $D += [uintptr]; 4..6|% {$D += $D[$_].\"MakeByR`efType\"()}"
    "14"=" $F='kernel','advapi','advapi', ($S,$S,$I,$I,$I,$I,$I,$S,$D[7],$D[8]), ([uintptr],$S,$I,$I,$D[9]),([uintptr],$S,$I,$I,[byte[]],$I)"
    "15"=" 0..2|% {$9=$D[0].\"DefinePInvok`eMethod\"(('CreateProcess','RegOpenKeyEx','RegSetValueEx')[$_],$F[$_]+'32',8214,1,$S,$F[$_+3],1,4)}"
    "16"=" $DF=($P,$I,$P),($I,$I,$I,$I,$P,$D[1]),($I,$S,$S,$S,$I,$I,$I,$I,$I,$I,$I,$I,[int16],[int16],$P,$P,$P,$P),($D[3],$P),($P,$P,$I,$I)"
    "17"=" 1..5|% {$k=$_; $n=1; $DF[$_-1]|% {$9=$D[$k].\"Defin`eField\"('f' + $n++, $_, 6)}}; 0..5|% {$T += $D[$_].\"Creat`eType\"()}"
    "18"=" 0..5|% {nv \"A$_\" ([Activator]::CreateInstance($T[$_])) -fo}; function F ($1,$2) {$T[0].\"G`etMethod\"($1).invoke(0,$2)}"
    "19"=" $TI=(whoami /groups)-like'*1-16-16384*'; $As=0; if(!$cmd) {$cmd='control';$arg='admintools'}; if ($cmd-eq'This PC'){$cmd='file:'}"
    "20"=" if (!$TI) {'TrustedInstaller','lsass','winlogon'|% {if (!$As) {$9=sc.exe start $_; $As=@(get-process -name $_ -ea 0|% {$_})[0]}}"
    "21"=" function M ($1,$2,$3) {$M.\"G`etMethod\"($1,[type[]]$2).invoke(0,$3)}; $H=@(); $Z,(4*$Z+16)|% {$H += M \"AllocHG`lobal\" $I $_}"
    "22"=" M \"WriteInt`Ptr\" ($P,$P) ($H[0],$As.Handle); $A1.f1=131072; $A1.f2=$Z; $A1.f3=$H[0]; $A2.f1=1; $A2.f2=1; $A2.f3=1; $A2.f4=1"
    "23"=" $A2.f6=$A1; $A3.f1=10*$Z+32; $A4.f1=$A3; $A4.f2=$H[1]; M \"StructureTo`Ptr\" ($D[2],$P,[boolean]) (($A2 -as $D[2]),$A4.f2,$false)"
    "24"=" $Run=@($null, \"powershell -win 1 -nop -c iex `$env:R; # $id\", 0, 0, 0, 0x0E080600, 0, $null, ($A4 -as $T[4]), ($A5 -as $T[5]))"
    "25"=" F 'CreateProcess' $Run; return}; $env:R=''; rp $key $id -force; $priv=[diagnostics.process].\"GetM`ember\"('SetPrivilege',42)[0]"
    "26"=" 'SeSecurityPrivilege','SeTakeOwnershipPrivilege','SeBackupPrivilege','SeRestorePrivilege' |% {$priv.Invoke($null, @(\"$_\",2))}"
    "27"=" $HKU=[uintptr][uint32]2147483651; $NT='S-1-5-18'; $reg=($HKU,$NT,8,2,($HKU -as $D[9])); F 'RegOpenKeyEx' $reg; $LNK=$reg[4]"
    "28"=" function L ($1,$2,$3) {sp 'Registry::HKCR\\AppID\\{CDCBCFCA-3CDC-436f-A4E2-0E02075250C2}' 'RunAs' $3 -force -ea 0"
    "29"="  $b=[Text.Encoding]::Unicode.GetBytes(\"\\Registry\\User\\$1\"); F 'RegSetValueEx' @($2,'SymbolicLinkValue',0,6,[byte[]]$b,$b.Length)}"
    "30"=" function Q {[int](gwmi win32_process -filter 'name=\"explorer.exe\"'|?{$_.getownersid().sid-eq$NT}|select -last 1).ProcessId}"
    "31"=" $11bug=($((gwmi Win32_OperatingSystem).BuildNumber)-eq'22000')-AND(($cmd-eq'file:')-OR(test-path -lit $cmd -PathType Container))"
    "32"=" if ($11bug) {'System.Windows.Forms','Microsoft.VisualBasic' |% {$9=[Reflection.Assembly]::LoadWithPartialName(\"'$_\")}}"
    "33"=" if ($11bug) {$path='^(l)'+$($cmd -replace '([\\+\\^\\%\\~\\(\\)\\[\\]])','{$1}')+'{ENTER}'; $cmd='control.exe'; $arg='admintools'}"
    "34"=" L ($key-split'\\\\')[1] $LNK ''; $R=[diagnostics.process]::start($cmd,$arg); if ($R) {$R.PriorityClass='High'; $R.WaitForExit()}"
    "35"=" if ($11bug) {$w=0; do {if($w-gt40){break}; sleep -mi 250;$w++} until (Q); [Microsoft.VisualBasic.Interaction]::AppActivate($(Q))}"
    "36"=" if ($11bug) {[Windows.Forms.SendKeys]::SendWait($path)}; do {sleep 7} while(Q); L '.Default' $LNK 'Interactive User'"
    "37"="'@; $V='';'cmd','arg','id','key'|%{$V+=\"`n`$$_='$($(gv $_ -val)-replace\"'\",\"''\")';\"}; sp $key $id $($V,$code) -type 7 -force -ea 0"
    "38"=" start powershell -args \"-win 1 -nop -c `n$V `$env:R=(gi `$key -ea 0).getvalue(`$id)-join''; iex `$env:R\" -verb runas"
    "39"="}; $A=([environment]::commandline-split'-[-]%+ ?',2)[1]-split'\"([^\"]+)\"|([^ ]+)',2|%{$_.Trim(' \"')}; RunAsTI $A[1] $A[2]; # AveYo, 2022.01.28"
    ;
     
  11. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    874
    30
    #1771 KedarWolf, Apr 2, 2022
    Last edited: Apr 2, 2022
    (OP)
    @gdeliana Latest commits. My source ISO does have the file.

    Edit: Windows installs okay though. Windows 11 22000.593.

    Code:
    Index     : 0
    Exception : Cannot find path 'D:\Optimize-Offline-master\Optimize-Offline-master\OfflineTemp_985953645\ImageOffline\sources' because it does not exist.
    Category  : ObjectNotFound: (D:\Optimize-Off...Offline\sources:String) [Get-ChildItem], ItemNotFoundException
    ErrorID   : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
    Target    : D:\Optimize-Offline-master\Optimize-Offline-master\OfflineTemp_985953645\ImageOffline\sources
    Command   : if (Get-ChildItem -Path (GetPath -Path $ImageFolder -Child sources) -Filter appraiserres.dll -File) {
    Script    : D:\Optimize-Offline-master\Optimize-Offline-master\Optimize-Offline.psm1
    Line      : 2369
    Column    : 8
    
    Changed the below from:

    Code:
    #region disable W11 boot image HW checks
            If ($InstallInfo.Build -ge '22000' -and (Test-Path -Path $BootMount)) {
                RegHives -Load
                RegKey -Path "HKLM:\BOOT_HKLM_SYSTEM\Setup\LabConfig" -Name "BypassCPUCheck" -Type DWord -Value 1
                RegKey -Path "HKLM:\BOOT_HKLM_SYSTEM\Setup\LabConfig" -Name "BypassRAMCheck" -Type DWord -Value 1
                RegKey -Path "HKLM:\BOOT_HKLM_SYSTEM\Setup\LabConfig" -Name "BypassSecureBootCheck" -Type DWord -Value 1
                RegKey -Path "HKLM:\BOOT_HKLM_SYSTEM\Setup\LabConfig" -Name "BypassStorageCheck" -Type DWord -Value 1
                RegKey -Path "HKLM:\BOOT_HKLM_SYSTEM\Setup\LabConfig" -Name "BypassTPMCheck" -Type DWord -Value 1
                RegKey -Path "HKLM:\WIM_HKLM_SYSTEM\Setup\MoSetup" -Name "AllowUpgradesWithUnsupportedTPMOrCPU" -Type DWord -Value 1
                if (Get-ChildItem -Path (GetPath -Path $ImageFolder -Child sources) -Filter appraiserres.dll -File) {
                    Get-ChildItem -Path (GetPath -Path $ImageFolder -Child sources) -Filter appraiserres.dll -File | Rename-Item -NewName appraiserres.dll.bak
                }
                RegHives -Unload
              }
    The below fixed it, and I checked in the Sources folder of the made ISO, it's correctly named appraiserres.dll.bak

    Code:
    #region disable W11 boot image HW checks
            If ($InstallInfo.Build -ge '22000' -and (Test-Path -Path $BootMount)) {
                RegHives -Load
                RegKey -Path "HKLM:\BOOT_HKLM_SYSTEM\Setup\LabConfig" -Name "BypassCPUCheck" -Type DWord -Value 1
                RegKey -Path "HKLM:\BOOT_HKLM_SYSTEM\Setup\LabConfig" -Name "BypassRAMCheck" -Type DWord -Value 1
                RegKey -Path "HKLM:\BOOT_HKLM_SYSTEM\Setup\LabConfig" -Name "BypassSecureBootCheck" -Type DWord -Value 1
                RegKey -Path "HKLM:\BOOT_HKLM_SYSTEM\Setup\LabConfig" -Name "BypassStorageCheck" -Type DWord -Value 1
                RegKey -Path "HKLM:\BOOT_HKLM_SYSTEM\Setup\LabConfig" -Name "BypassTPMCheck" -Type DWord -Value 1
                RegKey -Path "HKLM:\WIM_HKLM_SYSTEM\Setup\MoSetup" -Name "AllowUpgradesWithUnsupportedTPMOrCPU" -Type DWord -Value 1
                if (Get-ChildItem -Path (GetPath -Path $ISOMedia.FullName -Child sources) -Filter appraiserres.dll -File) {
                    Get-ChildItem -Path (GetPath -Path $ISOMedia.FullName -Child sources) -Filter appraiserres.dll -File | Rename-Item -NewName appraiserres.dll.bak
                }
                RegHives -Unload
              }
            #endregion disable W11 boot image HW checks
    
     
  12. gdeliana

    gdeliana MDL Senior Member

    Oct 2, 2010
    365
    428
    10
    Thanks @KedarWolf I didn't test it at all, i was coding blindly coz my windows installation was refusing to run the script will update the code and add the run as TI tweak you asked as an optional tweak.

    I am testing this latest 22581 release, seems nice with no apps version of UUP dump, but still i have issues such as missing settings app and explorer missing search bar when tweaked with OO.
     
  13. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    874
    30

    Edit: Oh, I'm using IOT Enterprise.

    What do you mean by no apps version?


    Settings working for me. To get Add Printer working I need to make sure the Device Association Service is Automatic and running.

    Search bar working too.

    Code:
    ***************************************************************************************************
    Running Module : Optimize-Offline 4.0.1.9
    Optimize Start : 04/02/2022 07:56:16 PM
    Identity Name  : SYSTEM
    Computer Name  : KEDARWOLF-PC
    ***************************************************************************************************
    
    2022-04-02T19:56:16 [INFO]: Supported Image Build: [22581]
    2022-04-02T19:56:19 [INFO]: Mounting Windows 11 IoT Enterprise
    2022-04-02T19:56:46 [INFO]: Mounting Microsoft Windows Setup (x64)
    2022-04-02T19:56:53 [INFO]: Pre-Optimization Image Health State: [Healthy]
    2022-04-02T19:56:57 [INFO]: Removing Provisioned App Package: Microsoft.BingNews
    2022-04-02T19:56:59 [INFO]: Removing Provisioned App Package: Microsoft.BingWeather
    2022-04-02T19:57:02 [INFO]: Removing Provisioned App Package: Microsoft.GetHelp
    2022-04-02T19:57:04 [INFO]: Removing Provisioned App Package: Microsoft.Getstarted
    2022-04-02T19:57:06 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftOfficeHub
    2022-04-02T19:57:09 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftSolitaireCollection
    2022-04-02T19:57:11 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftStickyNotes
    2022-04-02T19:57:13 [INFO]: Removing Provisioned App Package: Microsoft.People
    2022-04-02T19:57:15 [INFO]: Removing Provisioned App Package: Microsoft.SecHealthUI
    2022-04-02T19:57:15 [INFO]: Removing Provisioned App Package: Microsoft.Todos
    2022-04-02T19:57:18 [INFO]: Removing Provisioned App Package: Microsoft.Windows.Photos
    2022-04-02T19:57:20 [INFO]: Removing Provisioned App Package: Microsoft.WindowsAlarms
    2022-04-02T19:57:22 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCalculator
    2022-04-02T19:57:25 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCamera
    2022-04-02T19:57:27 [INFO]: Removing Provisioned App Package: Microsoft.WindowsFeedbackHub
    2022-04-02T19:57:29 [INFO]: Removing Provisioned App Package: Microsoft.WindowsMaps
    2022-04-02T19:57:32 [INFO]: Removing Provisioned App Package: Microsoft.WindowsNotepad
    2022-04-02T19:57:34 [INFO]: Removing Provisioned App Package: Microsoft.ZuneMusic
    2022-04-02T19:57:36 [INFO]: Removing Provisioned App Package: Microsoft.ZuneVideo
    2022-04-02T19:57:45 [INFO]: Removing System App: Microsoft.BioEnrollment
    2022-04-02T19:57:47 [INFO]: Removing System App: Microsoft.ECApp
    2022-04-02T19:57:49 [INFO]: Removing System App: Microsoft.LockApp
    2022-04-02T19:57:51 [INFO]: Removing System App: Microsoft.Windows.AddSuggestedFoldersToLibarayDialog
    2022-04-02T19:57:53 [INFO]: Removing System App: Microsoft.Windows.FileExplorer
    2022-04-02T19:57:55 [INFO]: Removing System App: Microsoft.Windows.FilePicker
    2022-04-02T19:57:57 [INFO]: Removing System App: Microsoft.Windows.ParentalControls
    2022-04-02T19:57:59 [INFO]: Removing System App: Microsoft.Windows.PeopleExperienceHost
    2022-04-02T19:58:01 [INFO]: Removing System App: Microsoft.Windows.PinningConfirmationDialog
    2022-04-02T19:58:03 [INFO]: Removing System App: NcsiUwpApp
    2022-04-02T19:58:05 [INFO]: Removing System App: Windows.CBSPreview
    2022-04-02T19:58:08 [INFO]: Disabling Services, Drivers and Integration Content for Removed Apps.
    2022-04-02T19:58:10 [INFO]: Disabling Defender Start-up and Feature Packages.
    2022-04-02T19:58:15 [INFO]: Removing Windows Biometric Capability: Hello.Face.20134~~~~0.0.1.0
    2022-04-02T19:58:20 [INFO]: Disabling Optional Feature: Windows-Defender-Default-Definitions
    2022-04-02T19:58:22 [INFO]: Importing Custom App Associations.
    2022-04-02T19:58:25 [INFO]: Removing Windows Capability: App.StepsRecorder~~~~0.0.1.0
    2022-04-02T19:58:27 [INFO]: Removing Windows Capability: Language.Handwriting~~~en-US~0.0.1.0
    2022-04-02T19:58:30 [INFO]: Removing Windows Capability: Language.OCR~~~en-US~0.0.1.0
    2022-04-02T19:58:32 [INFO]: Removing Windows Capability: Language.Speech~~~en-US~0.0.1.0
    2022-04-02T19:58:35 [INFO]: Removing Windows Capability: MathRecognizer~~~~0.0.1.0
    2022-04-02T19:58:37 [INFO]: Removing Windows Capability: Microsoft.Wallpapers.Extended~~~~0.0.1.0
    2022-04-02T19:58:40 [INFO]: Removing Windows Capability: Microsoft.Windows.Ethernet.Client.Intel.E1i68x64~~~~0.0.1.0
    2022-04-02T19:58:43 [INFO]: Removing Windows Capability: Microsoft.Windows.Ethernet.Client.Intel.E2f68~~~~0.0.1.0
    2022-04-02T19:58:45 [INFO]: Removing Windows Capability: Microsoft.Windows.Notepad.System~~~~0.0.1.0
    2022-04-02T19:58:48 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Broadcom.Bcmpciedhd63~~~~0.0.1.0
    2022-04-02T19:58:50 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Broadcom.Bcmwl63a~~~~0.0.1.0
    2022-04-02T19:58:53 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Broadcom.Bcmwl63al~~~~0.0.1.0
    2022-04-02T19:58:56 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwbw02~~~~0.0.1.0
    2022-04-02T19:58:59 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwew00~~~~0.0.1.0
    2022-04-02T19:59:02 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwew01~~~~0.0.1.0
    2022-04-02T19:59:05 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwlv64~~~~0.0.1.0
    2022-04-02T19:59:09 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwns64~~~~0.0.1.0
    2022-04-02T19:59:12 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwsw00~~~~0.0.1.0
    2022-04-02T19:59:15 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwtw02~~~~0.0.1.0
    2022-04-02T19:59:20 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwtw04~~~~0.0.1.0
    2022-04-02T19:59:24 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwtw06~~~~0.0.1.0
    2022-04-02T19:59:27 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwtw08~~~~0.0.1.0
    2022-04-02T19:59:31 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwtw10~~~~0.0.1.0
    2022-04-02T19:59:35 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Marvel.Mrvlpcie8897~~~~0.0.1.0
    2022-04-02T19:59:38 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Qualcomm.Athw8x~~~~0.0.1.0
    2022-04-02T19:59:42 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Qualcomm.Athwnx~~~~0.0.1.0
    2022-04-02T19:59:46 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Qualcomm.Qcamain10x64~~~~0.0.1.0
    2022-04-02T19:59:49 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Ralink.Netr28x~~~~0.0.1.0
    2022-04-02T19:59:53 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtl8187se~~~~0.0.1.0
    2022-04-02T19:59:57 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtl8192se~~~~0.0.1.0
    2022-04-02T20:00:00 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtl819xp~~~~0.0.1.0
    2022-04-02T20:00:03 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtl85n64~~~~0.0.1.0
    2022-04-02T20:00:07 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtwlane~~~~0.0.1.0
    2022-04-02T20:00:11 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtwlane01~~~~0.0.1.0
    2022-04-02T20:00:14 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtwlane13~~~~0.0.1.0
    2022-04-02T20:00:18 [INFO]: Removing Windows Capability: OpenSSH.Client~~~~0.0.1.0
    2022-04-02T20:00:25 [INFO]: Disabling Optional Feature: MicrosoftWindowsPowerShellV2Root
    2022-04-02T20:00:30 [INFO]: Disabling Optional Feature: MSRDC-Infrastructure
    2022-04-02T20:00:34 [INFO]: Disabling Optional Feature: SmbDirect
    2022-04-02T20:00:37 [INFO]: Disabling Optional Feature: WorkFolders-Client
    2022-04-02T20:00:42 [INFO]: Enabling Optional Feature: Microsoft-Windows-Subsystem-Linux
    2022-04-02T20:00:46 [INFO]: Enabling Optional Feature: VirtualMachinePlatform
    2022-04-02T20:00:52 [INFO]: Modifying windows service: AarSvc, Start: Disabled
    2022-04-02T20:00:53 [INFO]: Modifying windows service: Acx01000, Start: Disabled
    2022-04-02T20:00:54 [INFO]: Modifying windows service: AJRouter, Start: Disabled
    2022-04-02T20:00:55 [INFO]: Modifying windows service: ALG, Start: Disabled
    2022-04-02T20:00:56 [INFO]: Modifying windows service: AppVClient, Start: Disabled
    2022-04-02T20:00:57 [INFO]: Modifying windows service: autotimesvc, Start: Disabled
    2022-04-02T20:00:58 [INFO]: Modifying windows service: BcastDVRUserService, Start: Disabled
    2022-04-02T20:00:59 [INFO]: Modifying windows service: BluetoothUserService, Start: Disabled
    2022-04-02T20:01:00 [INFO]: Modifying windows service: BTAGService, Start: Disabled
    2022-04-02T20:01:01 [INFO]: Modifying windows service: BthAvctpSvc, Start: Disabled
    2022-04-02T20:01:02 [INFO]: Modifying windows service: bthserv, Start: Disabled
    2022-04-02T20:01:03 [INFO]: Modifying windows service: CaptureService, Start: Disabled
    2022-04-02T20:01:04 [INFO]: Modifying windows service: CDPSvc, Start: Disabled
    2022-04-02T20:01:05 [INFO]: Modifying windows service: CDPUserSvc, Start: Disabled
    2022-04-02T20:01:06 [INFO]: Modifying windows service: CertPropSvc, Start: Disabled
    2022-04-02T20:01:07 [INFO]: Modifying windows service: cloudidsvc, Start: Disabled
    2022-04-02T20:01:08 [INFO]: Modifying windows service: CscService, Start: Disabled
    2022-04-02T20:01:09 [INFO]: Modifying windows service: DeviceAssociationBrokerSvc, Start: Disabled
    2022-04-02T20:01:10 [INFO]: Modifying windows service: DeviceAssociationService, Start: Disabled
    2022-04-02T20:01:11 [INFO]: Modifying windows service: DevicePickerUserSvc, Start: Disabled
    2022-04-02T20:01:12 [INFO]: Modifying windows service: diagnosticshub.standardcollector.service, Start: Disabled
    2022-04-02T20:01:13 [INFO]: Modifying windows service: DiagTrack, Start: Disabled
    2022-04-02T20:01:14 [INFO]: Modifying windows service: DialogBlockingService, Start: Disabled
    2022-04-02T20:01:15 [INFO]: Modifying windows service: DispBrokerDesktopSvc, Start: Disabled
    2022-04-02T20:01:16 [INFO]: Modifying windows service: DisplayEnhancementService, Start: Disabled
    2022-04-02T20:01:17 [INFO]: Modifying windows service: dmwappushservice, Start: Disabled
    2022-04-02T20:01:18 [INFO]: Modifying windows service: DoSvc, Start: Disabled
    2022-04-02T20:01:19 [INFO]: Modifying windows service: DsSvc, Start: Disabled
    2022-04-02T20:01:20 [INFO]: Modifying windows service: DusmSvc, Start: Disabled
    2022-04-02T20:01:21 [INFO]: Modifying windows service: EntAppSvc, Start: Disabled
    2022-04-02T20:01:22 [INFO]: Modifying windows service: FrameServer, Start: Disabled
    2022-04-02T20:01:23 [INFO]: Modifying windows service: GraphicsPerfSvc, Start: Disabled
    2022-04-02T20:01:24 [INFO]: Modifying windows service: HvHost, Start: Disabled
    2022-04-02T20:01:25 [INFO]: Modifying windows service: hvservice, Start: Disabled
    2022-04-02T20:01:26 [INFO]: Modifying windows service: icssvc, Start: Disabled
    2022-04-02T20:01:27 [INFO]: Modifying windows service: iphlpsvc, Start: Disabled
    2022-04-02T20:01:28 [INFO]: Modifying windows service: LanmanServer, Start: Disabled
    2022-04-02T20:01:29 [INFO]: Modifying windows service: LanmanWorkstation, Start: Disabled
    2022-04-02T20:01:30 [INFO]: Modifying windows service: lfsvc, Start: Disabled
    2022-04-02T20:01:31 [INFO]: Modifying windows service: MapsBroker, Start: Disabled
    2022-04-02T20:01:32 [INFO]: Modifying windows service: MessagingService, Start: Disabled
    2022-04-02T20:01:33 [INFO]: Modifying windows service: MessagingService, Start: Disabled
    2022-04-02T20:01:34 [INFO]: Modifying windows service: PenService, Start: Disabled
    2022-04-02T20:01:35 [INFO]: Modifying windows service: MixedRealityOpenXRSvc, Start: Disabled
    2022-04-02T20:01:36 [INFO]: Modifying windows service: NativeWifiP, Start: Disabled
    2022-04-02T20:01:37 [INFO]: Modifying windows service: NcbService, Start: Disabled
    2022-04-02T20:01:38 [INFO]: Modifying windows service: NdisTapi, Start: Disabled
    2022-04-02T20:01:39 [INFO]: Modifying windows service: ndiswanlegacy, Start: Disabled
    2022-04-02T20:01:40 [INFO]: Modifying windows service: OneSyncSvc, Start: Disabled
    2022-04-02T20:01:41 [INFO]: Modifying windows service: PcaSvc, Start: Disabled
    2022-04-02T20:01:42 [INFO]: Modifying windows service: PeerDistSvc, Start: Disabled
    2022-04-02T20:01:43 [INFO]: Modifying windows service: perceptionsimulation, Start: Disabled
    2022-04-02T20:01:44 [INFO]: Modifying windows service: PerfHost, Start: Manual
    2022-04-02T20:01:45 [INFO]: Modifying windows service: PhoneSvc, Start: Disabled
    2022-04-02T20:01:46 [INFO]: Modifying windows service: PimIndexMaintenanceSvc, Start: Disabled
    2022-04-02T20:01:47 [INFO]: Modifying windows service: RasAuto, Start: Disabled
    2022-04-02T20:01:48 [INFO]: Modifying windows service: RasMan, Start: Disabled
    2022-04-02T20:01:49 [INFO]: Modifying windows service: RDPDR, Start: Disabled
    2022-04-02T20:01:50 [INFO]: Modifying windows service: RdpVideoMiniport, Start: Disabled
    2022-04-02T20:01:51 [INFO]: Modifying windows service: RemoteAccess, Start: Disabled
    2022-04-02T20:01:52 [INFO]: Modifying windows service: RemoteRegistry, Start: Disabled
    2022-04-02T20:01:53 [INFO]: Modifying windows service: RetailDemo, Start: Disabled
    2022-04-02T20:01:54 [INFO]: Modifying windows service: RmSvc, Start: Disabled
    2022-04-02T20:01:55 [INFO]: Modifying windows service: RpcLocator, Start: Disabled
    2022-04-02T20:01:56 [INFO]: Modifying windows service: SCardSvr, Start: Disabled
    2022-04-02T20:01:57 [INFO]: Modifying windows service: ScDeviceEnum, Start: Disabled
    2022-04-02T20:01:58 [INFO]: Modifying windows service: scfilter, Start: Disabled
    2022-04-02T20:01:59 [INFO]: Modifying windows service: SCPolicySvc, Start: Disabled
    2022-04-02T20:02:00 [INFO]: Modifying windows service: SDRSVC, Start: Disabled
    2022-04-02T20:02:01 [INFO]: Modifying windows service: seclogon, Start: Disabled
    2022-04-02T20:02:02 [INFO]: Modifying windows service: SecurityHealthService, Start: Disabled
    2022-04-02T20:02:03 [INFO]: Modifying windows service: SEMgrSvc, Start: Disabled
    2022-04-02T20:02:04 [INFO]: Modifying windows service: Sense, Start: Disabled
    2022-04-02T20:02:05 [INFO]: Modifying windows service: SensorDataService, Start: Disabled
    2022-04-02T20:02:06 [INFO]: Modifying windows service: SensorService, Start: Disabled
    2022-04-02T20:02:08 [INFO]: Modifying windows service: SensrSvc, Start: Disabled
    2022-04-02T20:02:09 [INFO]: Modifying windows service: SessionEnv, Start: Disabled
    2022-04-02T20:02:10 [INFO]: Modifying windows service: SharedAccess, Start: Disabled
    2022-04-02T20:02:11 [INFO]: Modifying windows service: SharedRealitySvc, Start: Disabled
    2022-04-02T20:02:12 [INFO]: Modifying windows service: shpamsvc, Start: Disabled
    2022-04-02T20:02:13 [INFO]: Modifying windows service: SmsRouter, Start: Disabled
    2022-04-02T20:02:14 [INFO]: Modifying windows service: SNMPTRAP, Start: Disabled
    2022-04-02T20:02:15 [INFO]: Modifying windows service: SpatialGraphFilter, Start: Disabled
    2022-04-02T20:02:16 [INFO]: Modifying windows service: spectrum, Start: Disabled
    2022-04-02T20:02:17 [INFO]: Modifying windows service: SSDPSRV, Start: Disabled
    2022-04-02T20:02:18 [INFO]: Modifying windows service: stisvc, Start: Disabled
    2022-04-02T20:02:19 [INFO]: Modifying windows service: TapiSrv, Start: Disabled
    2022-04-02T20:02:20 [INFO]: Modifying windows service: TermService, Start: Disabled
    2022-04-02T20:02:21 [INFO]: Modifying windows service: TrkWks, Start: Disabled
    2022-04-02T20:02:22 [INFO]: Modifying windows service: TsUsbFlt, Start: Disabled
    2022-04-02T20:02:23 [INFO]: Modifying windows service: tzautoupdate, Start: Disabled
    2022-04-02T20:02:24 [INFO]: Modifying windows service: UmRdpService, Start: Disabled
    2022-04-02T20:02:25 [INFO]: Modifying windows service: UnistoreSvc, Start: Disabled
    2022-04-02T20:02:26 [INFO]: Modifying windows service: upnphost, Start: Disabled
    2022-04-02T20:02:27 [INFO]: Modifying windows service: UserDataSvc, Start: Disabled
    2022-04-02T20:02:28 [INFO]: Modifying windows service: VacSvc, Start: Disabled
    2022-04-02T20:02:29 [INFO]: Modifying windows service: vmicguestinterface, Start: Disabled
    2022-04-02T20:02:30 [INFO]: Modifying windows service: vmicheartbeat, Start: Disabled
    2022-04-02T20:02:31 [INFO]: Modifying windows service: vmickvpexchange, Start: Disabled
    2022-04-02T20:02:32 [INFO]: Modifying windows service: vmicrdv, Start: Disabled
    2022-04-02T20:02:33 [INFO]: Modifying windows service: vmicshutdown, Start: Disabled
    2022-04-02T20:02:34 [INFO]: Modifying windows service: vmictimesync, Start: Disabled
    2022-04-02T20:02:35 [INFO]: Modifying windows service: vmicvmsession, Start: Disabled
    2022-04-02T20:02:36 [INFO]: Modifying windows service: vmicvss, Start: Disabled
    2022-04-02T20:02:37 [INFO]: Modifying windows service: W32Time, Start: Disabled
    2022-04-02T20:02:38 [INFO]: Modifying windows service: WalletService, Start: Disabled
    2022-04-02T20:02:39 [INFO]: Modifying windows service: wanarp, Start: Disabled
    2022-04-02T20:02:40 [INFO]: Modifying windows service: wanarpv6, Start: Disabled
    2022-04-02T20:02:41 [INFO]: Modifying windows service: wbengine, Start: Disabled
    2022-04-02T20:02:42 [INFO]: Modifying windows service: WbioSrvc, Start: Disabled
    2022-04-02T20:02:43 [INFO]: Modifying windows service: WdNisDrv, Start: Disabled
    2022-04-02T20:02:44 [INFO]: Modifying windows service: WdNisSvc, Start: Disabled
    2022-04-02T20:02:45 [INFO]: Modifying windows service: wercplsupport, Start: Disabled
    2022-04-02T20:02:46 [INFO]: Modifying windows service: WerSvc, Start: Disabled
    2022-04-02T20:02:47 [INFO]: Modifying windows service: WFDSConMgrSvc, Start: Disabled
    2022-04-02T20:02:48 [INFO]: Modifying windows service: WiaRpc, Start: Disabled
    2022-04-02T20:02:49 [INFO]: Modifying windows service: WinDefend, Start: Disabled
    2022-04-02T20:02:50 [INFO]: Modifying windows service: WinRM, Start: Disabled
    2022-04-02T20:02:51 [INFO]: Modifying windows service: wisvc, Start: Disabled
    2022-04-02T20:02:52 [INFO]: Modifying windows service: WlanSvc, Start: Disabled
    2022-04-02T20:02:53 [INFO]: Modifying windows service: WMPNetworkSvc, Start: Disabled
    2022-04-02T20:02:54 [INFO]: Modifying windows service: WpcMonSvc, Start: Disabled
    2022-04-02T20:02:55 [INFO]: Modifying windows service: WSearch, Start: Disabled
    2022-04-02T20:02:56 [INFO]: Modifying windows service: WwanSvc, Start: Disabled
    2022-04-02T20:02:57 [INFO]: Modifying windows service: XblAuthManager, Start: Disabled
    2022-04-02T20:02:58 [INFO]: Modifying windows service: XblGameSave, Start: Disabled
    2022-04-02T20:02:59 [INFO]: Modifying windows service: XboxGipSvc, Start: Disabled
    2022-04-02T20:03:00 [INFO]: Modifying windows service: XboxNetApiSvc, Start: Disabled
    2022-04-02T20:03:01 [INFO]: Setting delivery optimization to bypass mode
    2022-04-02T20:03:06 [INFO]: Integrating the Win32 Calculator.
    2022-04-02T20:03:08 [INFO]: Applying Optimized Registry Settings.
    2022-04-02T20:03:17 [INFO]: Applying Setup Content.
    2022-04-02T20:03:20 [INFO]: Importing Registry Template: Additional Tweaks.reg
    2022-04-02T20:03:27 [INFO]: Applying Answer File.
    2022-04-02T20:03:29 [INFO]: Injecting Driver Packages into Windows 11 IoT Enterprise
    2022-04-02T20:05:12 [INFO]: Cleaning-up the Start Menu Layout.
    2022-04-02T20:05:15 [INFO]: Disabling automatic driver update
    2022-04-02T20:05:16 [INFO]: Enabling dormant OneDrive fix
    2022-04-02T20:05:17 [INFO]: Disabling 3rd party apps
    2022-04-02T20:05:18 [INFO]: Removing taskbar pinned icons
    2022-04-02T20:05:21 [INFO]: Creating a Package Summary Log.
    2022-04-02T20:05:39 [INFO]: Post-Optimization Image Health State: [Healthy]
    2022-04-02T20:05:42 [INFO]: Saving and Dismounting Microsoft Windows Setup (x64)
    2022-04-02T20:05:52 [INFO]: Rebuilding and Exporting Microsoft Windows Setup (x64)
    2022-04-02T20:05:56 [INFO]: Saving and Dismounting Windows 11 IoT Enterprise
    2022-04-02T20:07:12 [INFO]: Rebuilding and Exporting Windows 11 IoT Enterprise using Maximum compression.
    2022-04-02T20:07:30 [INFO]: Optimizing the Installation Media File Structure.
    2022-04-02T20:07:31 [INFO]: Creating a Prompt Bootable Windows Installation Media ISO.
    2022-04-02T20:07:37 [INFO]: Finalizing Optimizations.
    2022-04-02T20:07:37 [INFO]: Optimize-Offline completed in [11] minutes with [0] errors.
    
    ***************************************************************************************************
    Optimizations Finalized : 04/02/2022 08:07:37 PM
    ***************************************************************************************************
    
     
  14. gdeliana

    gdeliana MDL Senior Member

    Oct 2, 2010
    365
    428
    10
    The problem for me is that i always get an ISO without apps in it ;)
    Even when skipApps=0

    There in the uupdump thread i got this explanation:

    [DISCUSSION] UUP dump - download Windows 10 UUPs with ease

    But still the idea of having the apps not integrated at all is intriguing, rather than relying in removing them. I am trying to fix bugs, especially the settings app not opening. Explorer missing the address bar and search.

    Microsoft.DesktopAppInstaller cannot be removed when host is >= 22000
     
  15. gdeliana

    gdeliana MDL Senior Member

    Oct 2, 2010
    365
    428
    10
    @KedarWolf

    Run as ti tweak is integrated, also fixed some typos at configuration.json. Am switching strategy, configuration.json will revert to most settings to false, don't want to make modifications by default active, users shall activate them manually.
     
  16. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    874
    30
    :)
     
  17. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    874
    30
    #1780 KedarWolf, Apr 4, 2022
    Last edited: Apr 4, 2022
    (OP)
    @gdeliana

    The below removes the Unsupported Hardware watermark in Windows 11 for both 22000 and 25H1

    Would be good to add.


    https://forums.mydigitallife.net/th...fications-overview.83744/page-55#post-1728630

    Code:
    reg add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v "SV1" /d 0 /t reg_dword /f
    reg add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v "SV2" /d 0 /t reg_dword /f
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "TargetReleaseVersion" /d 1 /t reg_dword /f
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "TargetReleaseVersionInfo" /d 25H1 /f