I believe he is referring to issue #194 from github. I'd link it but apperantly I am too much of a lurker to post links
Thanks for keeping me in mind. Unfortunately, your fix is not working for me. First of all, there's no "UserServiceFlag" in either of ther registry keys you provided. And secondly, the Powershell code appears to be broken. Line 28 apparently misses a ", but even after adding that, it's not working because the } added in line 29 is deemed an "unexpected token" by Powershell ISE.
I used the script today on updated LTSC 1809 install.wim ( with W10UI) and select some System App for removal but finally no any app was removed. Is it normal? my config below Code: { "_Info": [ "This is a JSON based Configuration file for Optimize-Offline.", "Ensure proper formatting is used when editing the JSON parameter values.", "Boolean parameter values use true and false. String parameter values must be enclosed in double-quotes." ], "SourcePath": "C:\\Users\\IK\\Desktop\\Optimize-Offline-4.0.1.5\\install.wim", "WindowsApps": "Select", "SystemApps": true, "Capabilities": false, "Packages": false, "Features": false, "DeveloperMode": false, "WindowsStore": false, "MicrosoftEdge": false, "Win32Calc": false, "Dedup": false, "DaRT": [ "Setup", "Recovery" ], "Registry": false, "Additional": { "Setup": false, "Wallpaper": false, "SystemLogo": false, "LockScreen": false, "RegistryTemplates": false, "LayoutModification": false, "Unattend": false, "Drivers": false, "NetFx3": false }, "ISO": "No-Prompt" }
Run the below in and admin PowerShell and see if the apps you selected are actually removed. Code: Get-AppxPackage -PackageTypeFilter Main | ? { $_.SignatureKind -eq "System" } | Sort Name | Format-Table Name, InstallLocation
Running above command I see what apps I have on live system but I was trying to remove apps offline (from install.wim). BTW after using Optimize-Offline script on wim file I compared the two wim - original and modified with BCompare. That's how I found out no apps were removed.
Appxpackage Powershell function works only on online system . to remove systemapps - appx packages from offline win 10 wim you must tweak reg hives so that at time of installation appxpackages were not called up to install.
Yes, I meant run it after installing Windows with the ISO. So, it remains to be seen if the apps were actually removed or is an issue with the compare app they are using. Edit: And there is an issue with system apps being reinstalled when installing the largest CU. See thread for the fix.
This is because technically the script does not remove System Apps but does remove registry entries based on a tweak released by abbodi1406 a few years ago. This tweak prevents these apps from being installed on the live OS but the files are still present. To completely remove System Apps you can use NTLite (only SmartScreen cannot be removed with the free version) or MSMG Toolkit which is completely free. But if you plan to install updates these system apps removed with these tools will return in Windows 10 version 1903 or higher.
Thanks for suggestion. It's true and I tested it - NTLite can remove completely system apps. MSMG toolkit can remove them completely as well, but not all can be selected for removal. Is there a script to completely remove desired system apps offline? It seems that Optimize-Offline script doesn't remove system apps (at least offline) and for me this feature of the tool is useless.
Here is something I recently used to 'treat' my PC OCD. On 20H1 (and maybe even earlier) ... open the "Accounts" Immersive Control Panel "explorer ms-settings:yourinfo" If you're using a local account, try to change your user account image. You might find that you're blocked. The fix is to enable \Microsoft\Windows\Shell\ CreateObjectTask