For the new Edge in the 'Configuration.json' do this with Notepad++. Code: "MicrosoftEdge": true, To keep the old Edge and Notepad, add the below lines with Notepad++ to the WhiteList files. To satisfy my PC OCD I keep them all in alphabetical order. 'CapabilitiesWhitelist.json 'add the below. Copy and paste and don't forget the comma. Code: "Microsoft.Windows.Notepad.System~~~~0.0.1.0", 'SystemAppXWhitelist.json' add the below. Code: "Microsoft.MicrosoftEdge", "Microsoft.MicrosoftEdgeDevToolsClient",
@KedarWolf why this error is coming Optimize-Offline : Cannot process argument transformation on parameter 'SystemApps'. Cannot convert value "System.String" to type "System.Management.Automation.SwitchParameter". Boolean parameters accept only Boolean values and numbers, such as $True, $False, 1 or 0. At C:\Users\Aditya\Downloads\Compressed\Optimize-Offline-4.0.1.8\Start-Optimize.ps1:118 char:18 + Optimize-Offline @ConfigParams + ~~~~~~~~~~~~~ + CategoryInfo : InvalidData: ) [Optimize-Offline], ParameterBindingArgumentTransformationException + FullyQualifiedErrorId : ParameterArgumentTransformationError,Optimize-Offline
Put the code for your SystemAppXWhitelist.json here. You did see I changed that post a few back, that it had an error.
For the new Edge in the 'Configuration.json' do this with Notepad++. Code: "MicrosoftEdge": true, To keep the old Edge and Notepad, add the below lines with Notepad++ to the WhiteList files. To satisfy my PC OCD I keep them all in alphabetical order. 'CapabilitiesWhitelist.json 'add the below. Copy and paste and don't forget the comma. Code: "Microsoft.Windows.Notepad.System~~~~0.0.1.0", 'SystemAppXWhitelist.json' add the below. Code: "Microsoft.MicrosoftEdge", "Microsoft.MicrosoftEdgeDevToolsClient",
Please just use my WhiteList files and install Notepad++ which is 100 times better than Notepad and install Chrome or Firefox or something, so much better than Edge. It's really frustrating that I have to hold your hand every step of the way. Editing the .jsons isn't rocket science, it's just common sense. I don't think I can spend any more time to troubleshoot all this for you. The script works fine with my .json files, I just tested it. 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": "D:\\1\\19044.1149.210717-0905.21H2_RELEASE_SVC_PROD3_CLIENT_X64FRE.iso", "WindowsApps": "WhiteList", "SystemApps": "WhiteList", "Capabilities": "WhiteList", "Packages": true, "Features": true, "DeveloperMode": false, "WindowsStore": false, "MicrosoftEdge": false, "Win32Calc": true, "Dedup": false, "DaRT": [], "Registry": true, "Additional": { "Setup": true, "Wallpaper": false, "SystemLogo": false, "LockScreen": false, "RegistryTemplates": true, "LayoutModification": true, "Unattend": true, "Drivers": true, "NetFx3": true }, "ComponentCleanup": true, "ISO": "No-Prompt", "CompressionType": "Solid" }
It was removed fined with me running Windows 10, removing it from a Windows 10 ISO. Are you running the script while Windows 11 is your operating system by any chance?
@KedarWolf - thank you so much - now everything works - Spoiler: dziennik Running Module : Optimize-Offline 4.0.1.8 Optimize Start : 07/24/2021 01:01:56 PM Identity Name : Zbyszek Computer Name : ZBYSZEK-PC *************************************************************************************************** 2021-07-24T13:01:56 [INFO]: Supported Image Build: [19043] 2021-07-24T13:01:59 [INFO]: Mounting Windows 10 Education 2021-07-24T13:02:35 [INFO]: Pre-Optimization Image Health State: [Healthy] 2021-07-24T13:02:42 [INFO]: Removing Provisioned App Package: CortanaApp.View.App 2021-07-24T13:02:44 [INFO]: Removing Provisioned App Package: Microsoft.GetHelp 2021-07-24T13:02:47 [INFO]: Removing Provisioned App Package: Microsoft.Getstarted 2021-07-24T13:02:50 [INFO]: Removing Provisioned App Package: Microsoft.Microsoft3DViewer 2021-07-24T13:02:53 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftOfficeHub 2021-07-24T13:02:55 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftSolitaireCollection 2021-07-24T13:02:58 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftStickyNotes 2021-07-24T13:03:01 [INFO]: Removing Provisioned App Package: Microsoft.MixedReality.Portal 2021-07-24T13:03:03 [INFO]: Removing Provisioned App Package: Microsoft.MSPaint 2021-07-24T13:03:06 [INFO]: Removing Provisioned App Package: Microsoft.Office.OneNote 2021-07-24T13:03:09 [INFO]: Removing Provisioned App Package: Microsoft.People 2021-07-24T13:03:12 [INFO]: Removing Provisioned App Package: Microsoft.ScreenSketch 2021-07-24T13:03:15 [INFO]: Removing Provisioned App Package: Microsoft.SkypeApp 2021-07-24T13:03:17 [INFO]: Removing Provisioned App Package: Microsoft.Wallet 2021-07-24T13:03:20 [INFO]: Removing Provisioned App Package: Microsoft.Windows.Photos 2021-07-24T13:03:23 [INFO]: Removing Provisioned App Package: Microsoft.WindowsAlarms 2021-07-24T13:03:26 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCalculator 2021-07-24T13:03:28 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCamera 2021-07-24T13:03:31 [INFO]: Removing Provisioned App Package: microsoft.windowscommunicationsapps 2021-07-24T13:03:34 [INFO]: Removing Provisioned App Package: Microsoft.WindowsFeedbackHub 2021-07-24T13:03:37 [INFO]: Removing Provisioned App Package: Microsoft.WindowsMaps 2021-07-24T13:03:40 [INFO]: Removing Provisioned App Package: Microsoft.WindowsSoundRecorder 2021-07-24T13:03:43 [INFO]: Removing Provisioned App Package: Microsoft.Xbox.TCUI 2021-07-24T13:03:46 [INFO]: Removing Provisioned App Package: Microsoft.XboxApp 2021-07-24T13:03:48 [INFO]: Removing Provisioned App Package: Microsoft.XboxGameOverlay 2021-07-24T13:03:51 [INFO]: Removing Provisioned App Package: Microsoft.XboxGamingOverlay 2021-07-24T13:03:54 [INFO]: Removing Provisioned App Package: Microsoft.XboxIdentityProvider 2021-07-24T13:03:56 [INFO]: Removing Provisioned App Package: Microsoft.XboxSpeechToTextOverlay 2021-07-24T13:03:59 [INFO]: Removing Provisioned App Package: Microsoft.YourPhone 2021-07-24T13:04:02 [INFO]: Removing Provisioned App Package: Microsoft.ZuneMusic 2021-07-24T13:04:05 [INFO]: Removing Provisioned App Package: Microsoft.ZuneVideo 2021-07-24T13:04:14 [INFO]: Removing System App: Microsoft.AAD.BrokerPlugin 2021-07-24T13:04:16 [INFO]: Removing System App: Microsoft.BioEnrollment 2021-07-24T13:04:18 [INFO]: Removing System App: Microsoft.ECApp 2021-07-24T13:04:20 [INFO]: Removing System App: Microsoft.LockApp 2021-07-24T13:04:22 [INFO]: Removing System App: Microsoft.Win32WebViewHost 2021-07-24T13:04:24 [INFO]: Removing System App: Microsoft.Windows.AddSuggestedFoldersToLibarayDialog 2021-07-24T13:04:26 [INFO]: Removing System App: Microsoft.Windows.CallingShellApp 2021-07-24T13:04:28 [INFO]: Removing System App: Microsoft.Windows.FileExplorer 2021-07-24T13:04:30 [INFO]: Removing System App: Microsoft.Windows.FilePicker 2021-07-24T13:04:32 [INFO]: Removing System App: Microsoft.Windows.ParentalControls 2021-07-24T13:04:34 [INFO]: Removing System App: Microsoft.Windows.PeopleExperienceHost 2021-07-24T13:04:36 [INFO]: Removing System App: Microsoft.Windows.SecHealthUI 2021-07-24T13:04:38 [INFO]: Removing System App: Microsoft.Windows.XGpuEjectDialog 2021-07-24T13:04:40 [INFO]: Removing System App: Microsoft.XboxGameCallableUI 2021-07-24T13:04:43 [INFO]: Disabling Services, Drivers and Integration Content for Removed Apps. 2021-07-24T13:04:49 [INFO]: Removing Windows Biometric Capability Packages. 2021-07-24T13:05:01 [INFO]: Disabling Optional Feature: Windows-Defender-Default-Definitions 2021-07-24T13:05:04 [INFO]: Importing Custom App Associations. 2021-07-24T13:05:07 [INFO]: Removing Windows Capability: App.StepsRecorder 2021-07-24T13:05:10 [INFO]: Removing Windows Capability: App.Support.QuickAssist 2021-07-24T13:05:14 [INFO]: Removing Windows Capability: MathRecognizer 2021-07-24T13:05:17 [INFO]: Removing Windows Capability: Media.WindowsMediaPlayer 2021-07-24T13:05:22 [INFO]: Removing Windows Capability: Microsoft.Windows.WordPad 2021-07-24T13:05:25 [INFO]: Removing Windows Capability: OneCoreUAP.OneSync 2021-07-24T13:05:29 [INFO]: Removing Windows Capability: OpenSSH.Client 2021-07-24T13:05:36 [INFO]: Disabling Optional Feature: MicrosoftWindowsPowerShellV2Root 2021-07-24T13:06:10 [INFO]: Integrating the Win32 Calculator. 2021-07-24T13:06:13 [INFO]: Applying Optimized Registry Settings. 2021-07-24T13:06:22 [INFO]: Applying Setup Content. 2021-07-24T13:06:25 [INFO]: Importing Registry Template: Additional Tweaks.reg 2021-07-24T13:06:31 [INFO]: Cannot perform a clean-up of the Component Store while there are pending installations. 2021-07-24T13:06:31 [INFO]: Cleaning-up the Start Menu Layout. 2021-07-24T13:06:36 [INFO]: Post-Optimization Image Health State: [Healthy] 2021-07-24T13:06:39 [INFO]: Saving and Dismounting Windows 10 Education 2021-07-24T13:07:49 [INFO]: Rebuilding and Exporting Windows 10 Education using Maximum compression. 2021-07-24T13:08:07 [INFO]: Finalizing Optimizations. 2021-07-24T13:08:07 [INFO]: Optimize-Offline completed in [6] minutes with [0] errors. *************************************************************************************************** Optimizations Finalized : 07/24/2021 01:08:07 PM ***************************************************************************************************