Perhaps this needs to be put at OP... just a thought Spoiler: WARNING!!! Popped this in here as a reminder Optimize-Offline Script for removing features from a Windows 10/11 ISO pre-installation. Most of the changes it does can be done on a live installation in a rollbackable (Safer) way instead, Therefore O-O is definately not recommended for beginners. Doing things wrong or not following the documentation can result in a (subtly) broken install that can only be fixed by reinstalling. Updated the (Commits) Changelog
Update: I created a 19044.1266 VM from uupdump and the gdeliana-2 version worked. I guess something in my current LTSC was causing issues. Glad to see it's working again.
Added this blurb. Important Note: This script is for advanced users. You can break your Windows install if you don't follow the guides and remove the wrong things. The Windows install will error out and the only fix is to have backup Windows install media you are sure works. I STRONGLY suggest you install VMWare and test your Optimise Offline ISO/Windows install media you made before installing it on a live system.
I've never removed this System app, but looking at the link you shared, I'm beginning to wonder if the 'Feature Experience Pack' does anything useful and maybe I should chuck it?
meant (at the very least) for deploying latest features (for testing), so it depends on your need for tinkering with those features (if any) early you certainly won't miss out on anything, as you will get them by upgrading to any new build.. by which time they will have been (heaven forbid) properly deployed Edit: seems I am seriously mistaken, certainly regarding 22468... guess M$ is at it... yet again see @gdeliana's post following this one
@gdeliana, getting seriously frustrated here (feeling like an utter noobe right now) If I run (as admin) populateTemplates.bat, cmd opens and closes immediately If I open CMD in root of project folder and run powershell .\Start-Optimize -populateTemplates I have to manually select path as the script does not appear to retrieve info from Configuration.json however on running this happens... Copying WIM from "D:\22468.1000_amd64_en-gb_DF\sources" Spoiler: Optimize-Offline Log *************************************************************************************************** Running Module : Optimize-Offline 4.0.1.9 Optimize Start : 10/04/2021 12:39:22 PM Identity Name : W0LF Computer Name : DESKTOP-XXXXXXX *************************************************************************************************** 2021-10-04T12:39:22 [INFO]: Supported Image Build: [22468] 2021-10-04T12:39:25 [INFO]: Mounting Windows 11 Enterprise 2021-10-04T12:40:16 [INFO]: Mounting 2021-10-04T12:40:16 [ERROR]: Failed to Mount 2021-10-04T12:40:16 [INFO]: Discarding any Images and Terminating Optimizations. *************************************************************************************************** Optimizations Failed : 10/04/2021 12:40:16 PM *************************************************************************************************** Active mount points detected. Performing clean-up. Spoiler: OptimizeErrors Log *************************************************************************************************** Code: Index : 0 Exception : Cannot validate argument on parameter 'ImagePath'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. Category : InvalidData: (:) [Mount-WindowsImage], ParameterBindingValidationException ErrorID : ParameterArgumentValidationError,Microsoft.Dism.Commands.MountWindowsImageCommand Target : Command : [Void](Mount-WindowsImage @MountBootParams) Script : D:\Optimize-Offline-master_11_4.01.9_G3_A3_personal_gdeliana\Optimize-Offline.psm1 Line : 449 Column : 31 -- is the i in [Mount-WindowsImage] Index : 1 Exception : Cannot bind argument to parameter 'Path' because it is null. Category : InvalidData: (:) [Resolve-FullPath], ParameterBindingValidationException ErrorID : ParameterArgumentValidationErrorNullNotAllowed,Resolve-FullPath Target : Command : Log ($OptimizeData.FailedToRetrieveImageMetadata -f (GetPath -Path $BootWim -Split Leaf)) -Type Error -ErrorRecord $Error[0] Script : D:\Optimize-Offline-master_11_4.01.9_G3_A3_personal_gdeliana\Optimize-Offline.psm1 Line : 432 Column : 72 -- is the t in (GetPath Index : 2 Exception : Cannot bind argument to parameter 'ImageFile' because it is null. Category : InvalidData: (:) [Get-ImageData], ParameterBindingValidationException ErrorID : ParameterArgumentValidationErrorNullNotAllowed,Get-ImageData Target : Command : $BootInfo = $BootWim | Get-ImageData -Index 2 -ErrorAction Stop Script : D:\Optimize-Offline-master_11_4.01.9_G3_A3_personal_gdeliana\Optimize-Offline.psm1 Line : 428 Column : 28 -- points to the gap/space after = $BootInfo = $BootWim Is it that the script doesn't run on build 22468 (Daily Driver), or am I missing somthing monumentally simple.. ie. turn Defender off
if you have Windows 10 and don't want to upgrade to Windows 11, make sure TPM is disable in the bios or add this registry file. Save it as StopWin11.reg and double click it. Code: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate] "TargetReleaseVersion"=dword:00000001 "TargetReleaseVersionInfo"="21H2" "ProductVersion"="Windows 10" Or add the below to your Additional Tweaks.reg file. Code: [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate] "TargetReleaseVersion"=dword:00000001 "TargetReleaseVersionInfo"="21H2" "ProductVersion"="Windows 10"
@abbodi1406 wrote - Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate] "TargetReleaseVersion"=dword:00000001 "TargetReleaseVersionInfo"="21H2" "ProductVersion"="Windows 10"
Could you not have linked the script only? Or, does the fix include bundles not found inside previous releases? I find downloading the same bundles with every release not only annoying but wasteful. Thank you. Grateful user.