I think I'm going to update the OP soon with your fork of Godhand's script and credit you both, but the how-to for your script. It'll be complex though, so many other factors to consider. Edit: And the latest script worked flawlessly, a totally automated run, this morning when I tried it before I left for work. Only issue I have was I whitelisted the files I wanted to remove instead of the files I wanted to keep in Features, but as soon as I realized my mistake, it was perfect! I think with Solid compression on my 5950x it took 13 minutes or something, it was still doing the compression when I left for work.
Optimize-Offline completed in [14] minutes with [0] errors. PS D:\Optimize-Offline-4.0.1.9-b1\Optimize-Offline-4.0.1.9-b1>
It does I ran the script on the newest Windows 11 ISO, fully updated with W10UI. The Remove Packages, Enable Features and Disable Features do not work. Nothing gets removed. It briefly says it's ready to remove those items, but nothing gets removed. Everything works on a Windows 10 ISO though. Here is my configuration.json 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\\22000.100.210719-2150.CO_RELEASE_SVC_PROD2_CLIENT_X64FRE.iso", "WindowsApps": "Whitelist", "SystemApps": "Whitelist", "Capabilities": "Whitelist", "Packages": "Whitelist", "FeaturesToEnable": "List", "FeaturesToDisable": "List", "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": false, "Unattend": true, "Drivers": true, "NetFx3": true }, "ComponentCleanup": true, "ISO": "No-Prompt", "CompressionType": "Solid", "SelectiveRegistry": { "DisableWindowsUpdate": false, "DisableDriverUpdate": true, "DormantOneDrive": true } } Here are my lists. PackagesWhitelist.json Code: { "PackageName": [ "Microsoft-OneCore-ApplicationModel-Sync-Desktop-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.65", "Microsoft-OneCore-DirectX-Database-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Client-LanguagePack-Package~31bf3856ad364e35~amd64~en-US~10.0.22000.100", "Microsoft-Windows-Ethernet-Client-Intel-E1i68x64-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Ethernet-Client-Intel-E2f68-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Ethernet-Client-Realtek-Rtcx21x64-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-FodMetadata-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Hello-Face-Package~31bf3856ad364e35~amd64~~10.0.22000.100", "Microsoft-Windows-InternetExplorer-Optional-Package~31bf3856ad364e35~amd64~~11.0.22000.1", "Microsoft-Windows-InternetExplorer-Optional-Package~31bf3856ad364e35~amd64~en-US~11.0.22000.1", "Microsoft-Windows-Kernel-LA57-FoD-Package~31bf3856ad364e35~amd64~~10.0.22000.100", "Microsoft-Windows-MediaPlayer-Package~31bf3856ad364e35~amd64~~10.0.22000.100", "Microsoft-Windows-Notepad-System-FoD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Notepad-System-FoD-Package~31bf3856ad364e35~amd64~en-US~10.0.22000.1", "Microsoft-Windows-Notepad-System-FoD-Package~31bf3856ad364e35~wow64~~10.0.22000.1", "Microsoft-Windows-Notepad-System-FoD-Package~31bf3856ad364e35~wow64~en-US~10.0.22000.1", "Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~amd64~en-US~10.0.22000.1", "Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~wow64~~10.0.22000.1", "Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~wow64~en-US~10.0.22000.1", "Microsoft-Windows-Printing-PMCPPC-FoD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Printing-PMCPPC-FoD-Package~31bf3856ad364e35~amd64~en-US~10.0.22000.1", "Microsoft-Windows-Printing-WFS-FoD-Package~31bf3856ad364e35~amd64~~10.0.22000.41", "Microsoft-Windows-Printing-WFS-FoD-Package~31bf3856ad364e35~amd64~en-US~10.0.22000.1", "Microsoft-Windows-QuickAssist-Package~31bf3856ad364e35~amd64~~10.0.22000.41", "Microsoft-Windows-StepsRecorder-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-StepsRecorder-Package~31bf3856ad364e35~amd64~en-US~10.0.22000.1", "Microsoft-Windows-StepsRecorder-Package~31bf3856ad364e35~wow64~~10.0.22000.1", "Microsoft-Windows-StepsRecorder-Package~31bf3856ad364e35~wow64~en-US~10.0.22000.1", "Microsoft-Windows-TabletPCMath-Package~31bf3856ad364e35~amd64~~10.0.22000.65", "Microsoft-Windows-UserExperience-Desktop-Package~31bf3856ad364e35~amd64~~10.0.22000.100", "Microsoft-Windows-Wifi-Client-Broadcom-Bcmpciedhd63-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Broadcom-Bcmwl63a-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Broadcom-Bcmwl63al-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Intel-Netwbw02-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Intel-Netwew00-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Intel-Netwew01-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Intel-Netwlv64-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Intel-Netwns64-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Intel-Netwsw00-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Intel-Netwtw02-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Intel-Netwtw04-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Intel-Netwtw06-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Intel-Netwtw08-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Marvel-Mrvlpcie8897-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Qualcomm-Athw8x-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Qualcomm-Athwnx-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Qualcomm-Qcamain10x64-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Ralink-Netr28x-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Realtek-Rtl8187se-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Realtek-Rtl8192se-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Realtek-Rtl819xp-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Realtek-Rtl85n64-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Realtek-Rtwlane01-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Realtek-Rtwlane13-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Realtek-Rtwlane-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-WordPad-FoD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-WordPad-FoD-Package~31bf3856ad364e35~amd64~en-US~10.0.22000.1", "Microsoft-Windows-WordPad-FoD-Package~31bf3856ad364e35~wow64~~10.0.22000.1", "Microsoft-Windows-WordPad-FoD-Package~31bf3856ad364e35~wow64~en-US~10.0.22000.1", "OpenSSH-Client-Package~31bf3856ad364e35~amd64~~10.0.22000.1" ] } FeaturesToDisable.json Code: { "FeatureName": [ "Microsoft-Hyper-V", "Microsoft-Hyper-V-All", "Microsoft-Hyper-V-Hypervisor", "Microsoft-Hyper-V-Management-Clients", "Microsoft-Hyper-V-Management-PowerShell", "Microsoft-Hyper-V-Services", "Microsoft-Hyper-V-Tools-All", "TelnetClient", "Windows-Defender-ApplicationGuard" ] } FeaturesToEnable.json Code: { "FeatureName": [ "MediaPlayback", "MicrosoftWindowsPowerShellV2", "MicrosoftWindowsPowerShellV2Root", "NetFx3", "NetFx4-AdvSrvs", "Printing-Foundation-Features", "Printing-Foundation-InternetPrinting-Client", "Printing-PrintToPDFServices-Features", "SearchEngine-Client-Package", "WCF-Services45", "WCF-TCP-PortSharing45", "Windows-Defender-Default-Definitions", "WorkFolders-Client" ] } Update: Select works on all, but Whitelist on packages and List on the Features doesn't.
@KedarWolf, forgive me if I am mistaken (just woke up after following Olympics through the night) but, the whielist should be packages you want to keep, the ones you have listed seems more in line with ones you DON'T want to keep (blacklist) apart from (at first glance) "Microsoft-Windows-Client-LanguagePack-Package~31bf3856ad364e35~amd64~en-US~10.0.22000.100" perhaps the issue is the same with the other 2 as well
Whitelist (KEEP), Blacklist (REMOVE), Apart from that the configuration looks more like a CapabilitiesBlacklist.json and not a PackagesWhitelist.json ... I could be wrong, won't be the first time... or the last (as stated still a bit early)
These are the apps in the Whitelists I want to keep, not remove. I'm sure I've done it right. Code: { "DisplayName": [ "CortanaApp.View.App", "Microsoft.DesktopAppInstaller", "Microsoft.GamingApp", "Microsoft.HEIFImageExtension", "Microsoft.PowerAutomateDesktop", "Microsoft.StorePurchaseApp", "Microsoft.UI.Xaml.2.4", "Microsoft.VCLibs.140.00", "Microsoft.VP9VideoExtensions", "Microsoft.WebMediaExtensions", "Microsoft.WebpImageExtension", "Microsoft.WindowsStore", "Microsoft.WindowsTerminal", "Microsoft.Xbox.TCUI", "Microsoft.XboxGameOverlay", "Microsoft.XboxGamingOverlay", "Microsoft.XboxIdentityProvider", "Microsoft.XboxSpeechToTextOverlay", "MicrosoftWindows.Client.WebExperience" ] } Code: { "Name": [ "Browser.InternetExplorer~~~~0.0.11.0", "DirectX.Configuration.Database~~~~0.0.1.0", "Microsoft.Windows.Ethernet.Client.Realtek.Rtcx21x64~~~~0.0.1.0", "Microsoft.Windows.PowerShell.ISE~~~~0.0.1.0", "NetFX3~~~~", "Print.Fax.Scan~~~~0.0.1.0", "Print.Management.Console~~~~0.0.1.0", "Windows.Client.ShellComponents~~~~0.0.1.0", "Windows.Kernel.LA57~~~~0.0.1.0" ] } Code: { "PackageName": [ "Microsoft-OneCore-DirectX-Database-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Client-LanguagePack-Package~31bf3856ad364e35~amd64~en-US~10.0.22000.100", "Microsoft-Windows-Ethernet-Client-Realtek-Rtcx21x64-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-FodMetadata-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-InternetExplorer-Optional-Package~31bf3856ad364e35~amd64~~11.0.22000.1", "Microsoft-Windows-InternetExplorer-Optional-Package~31bf3856ad364e35~amd64~en-US~11.0.22000.1", "Microsoft-Windows-Kernel-LA57-FoD-Package~31bf3856ad364e35~amd64~~10.0.22000.100", "Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~amd64~en-US~10.0.22000.1", "Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~wow64~~10.0.22000.1", "Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~wow64~en-US~10.0.22000.1", "Microsoft-Windows-Printing-PMCPPC-FoD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Printing-PMCPPC-FoD-Package~31bf3856ad364e35~amd64~en-US~10.0.22000.1", "Microsoft-Windows-Printing-WFS-FoD-Package~31bf3856ad364e35~amd64~~10.0.22000.41", "Microsoft-Windows-Printing-WFS-FoD-Package~31bf3856ad364e35~amd64~en-US~10.0.22000.1", "Microsoft-Windows-UserExperience-Desktop-Package~31bf3856ad364e35~amd64~~10.0.22000.100" ] } Code: { "DisplayName": [ "Microsoft.AccountsControl", "Microsoft.AsyncTextService", "Microsoft.CredDialogHost", "Microsoft.UI.Xaml.CBS", "Microsoft.Windows.AppRep.ChxApp", "Microsoft.Windows.AppResolverUX", "Microsoft.Windows.AssignedAccessLockApp", "Microsoft.Windows.CallingShellApp", "Microsoft.Windows.CapturePicker", "Microsoft.Windows.CloudExperienceHost", "Microsoft.Windows.ContentDeliveryManager", "Microsoft.Windows.OOBENetworkCaptivePortal", "Microsoft.Windows.OOBENetworkConnectionFlow", "Microsoft.Windows.PinningConfirmationDialog", "Microsoft.Windows.Search", "Microsoft.Windows.SecureAssessmentBrowser", "Microsoft.Windows.ShellExperienceHost", "Microsoft.Windows.StartMenuExperienceHost", "Microsoft.Windows.XGpuEjectDialog", "Microsoft.XboxGameCallableUI", "MicrosoftWindows.Client.CBS", "MicrosoftWindows.UndockedDevKit", "Windows.CBSPreview", "windows.immersivecontrolpanel", "Windows.PrintDialog" ] } Code: { "FeatureName": [ "Microsoft-Windows-Subsystem-Linux", ] } Except for the Features To Disable. Code: { "FeatureName": [ "Microsoft-Hyper-V", "Microsoft-Hyper-V-All", "Microsoft-Hyper-V-Hypervisor", "Microsoft-Hyper-V-Management-Clients", "Microsoft-Hyper-V-Management-PowerShell", "Microsoft-Hyper-V-Services", "Microsoft-Hyper-V-Tools-All", "Windows-Defender-ApplicationGuard" ] } Edit: I made the new lists from an ISO made using Select instead of Whitelist and List. Did ./start-Optimize populateLists Copied the lists back to the .jsons, still not working with Windows 11 and Whitelist and List.
in this case yes, used FeaturesDisabled.json (template) to create FeaturesToEnable.json (User File) Code: { "FeatureName": [ "Microsoft-Hyper-V", "Microsoft-Hyper-V-All", "Microsoft-Hyper-V-Hypervisor", "Microsoft-Hyper-V-Management-Clients", "Microsoft-Hyper-V-Management-PowerShell", "Microsoft-Hyper-V-Services", "Microsoft-Hyper-V-Tools-All", "Windows-Defender-ApplicationGuard" ] } [/QUOTE] In this case No, you have again used the FeaturesDisabled.json (template) instead of the FeaturesEnabled.json (template) FeaturesToDisable.json should look more like this Code: { "FeatureName": [ "MicrosoftWindowsPowerShellV2", "MicrosoftWindowsPowerShellV2Root", "MSRDC-Infrastructure", "Printing-XPSServices-Features", "SmbDirect", "WorkFolders-Client" ] } Edit: Gonna grab a copy of Windows 11 and do a test later (with the latest Beta 1)
In this case No, you have again used the FeaturesDisabled.json (template) instead of the FeaturesEnabled.json (template) FeaturesToDisable.json should look more like this Code: { "FeatureName": [ "MicrosoftWindowsPowerShellV2", "MicrosoftWindowsPowerShellV2Root", "MSRDC-Infrastructure", "Printing-XPSServices-Features", "SmbDirect", "WorkFolders-Client" ] } [/QUOTE] Yes, you're right, the populate lists command mixes the lists up. This is the FeaturesEnabled.json list. Code: { "FeatureName": [ "MediaPlayback", "MicrosoftWindowsPowerShellV2", "MicrosoftWindowsPowerShellV2Root", "MSRDC-Infrastructure", "NetFx3", "NetFx4-AdvSrvs", "Printing-Foundation-Features", "Printing-Foundation-InternetPrinting-Client", "Printing-PrintToPDFServices-Features", "Printing-XPSServices-Features", "SearchEngine-Client-Package", "SmbDirect", "WCF-Services45", "WCF-TCP-PortSharing45", "Windows-Defender-Default-Definitions", "WindowsMediaPlayer", "WorkFolders-Client" ] } Features Disabled list. Code: { "FeatureName": [ "AppServerClient", "Client-DeviceLockdown", "Client-EmbeddedBootExp", "Client-EmbeddedLogon", "Client-EmbeddedShellLauncher", "ClientForNFS-Infrastructure", "Client-KeyboardFilter", "Client-ProjFS", "Client-UnifiedWriteFilter", "Containers", "Containers-DisposableClientVM", "Containers-HNS", "Containers-SDN", "DataCenterBridging", "DirectoryServices-ADAM-Client", "DirectPlay", "HostGuardian", "HypervisorPlatform", "IIS-ApplicationDevelopment", "IIS-ApplicationInit", "IIS-ASP", "IIS-ASPNET", "IIS-ASPNET45", "IIS-BasicAuthentication", "IIS-CertProvider", "IIS-CGI", "IIS-ClientCertificateMappingAuthentication", "IIS-CommonHttpFeatures", "IIS-CustomLogging", "IIS-DefaultDocument", "IIS-DigestAuthentication", "IIS-DirectoryBrowsing", "IIS-FTPExtensibility", "IIS-FTPServer", "IIS-FTPSvc", "IIS-HealthAndDiagnostics", "IIS-HostableWebCore", "IIS-HttpCompressionDynamic", "IIS-HttpCompressionStatic", "IIS-HttpErrors", "IIS-HttpLogging", "IIS-HttpRedirect", "IIS-HttpTracing", "IIS-IIS6ManagementCompatibility", "IIS-IISCertificateMappingAuthentication", "IIS-IPSecurity", "IIS-ISAPIExtensions", "IIS-ISAPIFilter", "IIS-LegacyScripts", "IIS-LegacySnapIn", "IIS-LoggingLibraries", "IIS-ManagementConsole", "IIS-ManagementScriptingTools", "IIS-ManagementService", "IIS-Metabase", "IIS-NetFxExtensibility", "IIS-NetFxExtensibility45", "IIS-ODBCLogging", "IIS-Performance", "IIS-RequestFiltering", "IIS-RequestMonitor", "IIS-Security", "IIS-ServerSideIncludes", "IIS-StaticContent", "IIS-URLAuthorization", "IIS-WebDAV", "IIS-WebServer", "IIS-WebServerManagementTools", "IIS-WebServerRole", "IIS-WebSockets", "IIS-WindowsAuthentication", "IIS-WMICompatibility", "LegacyComponents", "Microsoft-Hyper-V", "Microsoft-Hyper-V-All", "Microsoft-Hyper-V-Hypervisor", "Microsoft-Hyper-V-Management-Clients", "Microsoft-Hyper-V-Management-PowerShell", "Microsoft-Hyper-V-Services", "Microsoft-Hyper-V-Tools-All", "Microsoft-Windows-Subsystem-Linux", "MSMQ-ADIntegration", "MSMQ-Container", "MSMQ-DCOMProxy", "MSMQ-HTTP", "MSMQ-Multicast", "MSMQ-Server", "MSMQ-Triggers", "MultiPoint-Connector", "MultiPoint-Connector-Services", "MultiPoint-Tools", "NetFx4Extended-ASPNET45", "NFS-Administration", "Printing-Foundation-LPDPrintService", "Printing-Foundation-LPRPortMonitor", "ServicesForNFS-ClientOnly", "SimpleTCP", "TelnetClient", "TFTP", "TIFFIFilter", "VirtualMachinePlatform", "WAS-ConfigurationAPI", "WAS-NetFxEnvironment", "WAS-ProcessModel", "WAS-WindowsActivationService", "WCF-HTTP-Activation", "WCF-HTTP-Activation45", "WCF-MSMQ-Activation45", "WCF-NonHTTP-Activation", "WCF-Pipe-Activation45", "WCF-TCP-Activation45", "Windows-Defender-ApplicationGuard", "Windows-Identity-Foundation" ] }
Kindly provide solution of this error Spoiler: Error PS D:\OO> .\Start-Optimize.ps1 ConvertFrom-Json : Invalid object passed in, ':' or '}' expected. (1087): { "_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:\\\\OO\\\\ISO_folder\\\\sources\\\\install.wim", "WindowsApps": "Whitelist", "SystemApps": "Whitelist", "Capabilities": "Whitelist", "Packages": true, "FeaturesToEnable": "List", "FeaturesToDisable": "List", "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": false, "Unattend": true, "Drivers": true, "NetFx3": true }, "ComponentCleanup": true, "ISO": "No-Prompt", "CompressionType": "Solid", "SelectiveRegistry": { "DisableWindowsUpdate": false, "DisableDriverUpdate": true "DormantOneDrive": true } } At D:\OO\Start-Optimize.ps1:54 char:32 + $ContentJSON = $ContentJSON | ConvertFrom-Json + ~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: ) [ConvertFrom-Json], ArgumentException + FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Commands.ConvertFromJsonCommand Optimize-Offline : A parameter cannot be found that matches parameter name 'PSPath'. At D:\OO\Start-Optimize.ps1:122 char:18 + Optimize-Offline @ConfigParams + ~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: ) [Optimize-Offline], ParameterBindingException + FullyQualifiedErrorId : NamedParameterNotFound,Optimize-Offline
Try this: Or "Packages": "Whitelist", 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:\\OO\\ISO\\sources\\install.wim", "WindowsApps": "Whitelist", "SystemApps": "Whitelist", "Capabilities": "Whitelist", "Packages": "Select", "FeaturesToEnable": "List", "FeaturesToDisable": "List", "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": false, "Unattend": true, "Drivers": true, "NetFx3": true }, "ComponentCleanup": true, "ISO": "No-Prompt", "CompressionType": "Solid", "SelectiveRegistry": { "DisableWindowsUpdate": false, "DisableDriverUpdate": true, "DormantOneDrive": true } }
Win11 en-GB Build 22000.100 TEST - (OS-21390-en-GB, ADK-22000) ----- Code: Image Source : D:\22000.100\sources\install.wim Project Folder: D:\Optimize-Offline-4.0.1.9-b1_11_gdeliana\ | ./Src | ./Public | ./en-US changed to ./en-GB | Offline-Resources.psm1 - Line 43 $OptimizeOffline.Culture = 'en-US' changed to 'en-GB' | ./en-US changed to ./en-GB ----- Spoiler: Configuration.json @gdeliana_O-O_4.0.1.9-b1 Win11 Build 22000.100 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:\\22000.100\\sources\\install.wim", "WindowsApps": "Whitelist", "SystemApps": "Whitelist", "Capabilities": "Whitelist", "Packages": "None", "FeaturesToEnable": "List", "FeaturesToDisable": "List", "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": false, "Unattend": false, "Drivers": false, "NetFx3": false }, "ComponentCleanup": false, "ISO": "No-Prompt", "CompressionType": "Maximum", "SelectiveRegistry": { "DisableWindowsUpdate": false, "DisableDriverUpdate": true, "DormantOneDrive": true } } ----- Spoiler: Generated AppxPackages.json (./TemplateLists) Win11 Build 22000.100 Code: { "DisplayName": [ "CortanaApp.View.App", "Microsoft.BingNews", "Microsoft.BingWeather", "Microsoft.DesktopAppInstaller", "Microsoft.GamingApp", "Microsoft.GetHelp", "Microsoft.Getstarted", "Microsoft.HEIFImageExtension", "Microsoft.MicrosoftOfficeHub", "Microsoft.MicrosoftSolitaireCollection", "Microsoft.MicrosoftStickyNotes", "Microsoft.Paint", "Microsoft.People", "Microsoft.PowerAutomateDesktop", "Microsoft.ScreenSketch", "Microsoft.SecHealthUI", "Microsoft.StorePurchaseApp", "Microsoft.Todos", "Microsoft.UI.Xaml.2.4", "Microsoft.VCLibs.140.00", "Microsoft.VP9VideoExtensions", "Microsoft.WebMediaExtensions", "Microsoft.WebpImageExtension", "Microsoft.Windows.Photos", "Microsoft.WindowsAlarms", "Microsoft.WindowsCalculator", "Microsoft.WindowsCamera", "microsoft.windowscommunicationsapps", "Microsoft.WindowsFeedbackHub", "Microsoft.WindowsMaps", "Microsoft.WindowsNotepad", "Microsoft.WindowsSoundRecorder", "Microsoft.WindowsStore", "Microsoft.WindowsTerminal", "Microsoft.Xbox.TCUI", "Microsoft.XboxGameOverlay", "Microsoft.XboxGamingOverlay", "Microsoft.XboxIdentityProvider", "Microsoft.XboxSpeechToTextOverlay", "Microsoft.YourPhone", "Microsoft.ZuneMusic", "Microsoft.ZuneVideo", "MicrosoftWindows.Client.WebExperience" ] } Spoiler: Edited to AppxWhitelist.json (./Content) Win11 Build 22000.100 Code: { "DisplayName": [ "CortanaApp.View.App", "Microsoft.DesktopAppInstaller", "Microsoft.GamingApp", "Microsoft.HEIFImageExtension", "Microsoft.PowerAutomateDesktop", "Microsoft.ScreenSketch", "Microsoft.SecHealthUI", "Microsoft.StorePurchaseApp", "Microsoft.UI.Xaml.2.4", "Microsoft.VCLibs.140.00", "Microsoft.VP9VideoExtensions", "Microsoft.WebMediaExtensions", "Microsoft.WebpImageExtension", "Microsoft.WindowsStore", "Microsoft.WindowsTerminal", "Microsoft.Xbox.TCUI", "Microsoft.XboxGameOverlay", "Microsoft.XboxGamingOverlay", "Microsoft.XboxIdentityProvider", "Microsoft.XboxSpeechToTextOverlay", "MicrosoftWindows.Client.WebExperience" ] } ----- Spoiler: Generated CapabilitiesPackages.json (./TemplateLists) Win11 Build 22000.100 Code: { "Name": [ "App.StepsRecorder~~~~0.0.1.0", "App.Support.QuickAssist~~~~0.0.1.0", "Browser.InternetExplorer~~~~0.0.11.0", "DirectX.Configuration.Database~~~~0.0.1.0", "Hello.Face.20134~~~~0.0.1.0", "Language.Handwriting~~~en-GB~0.0.1.0", "Language.OCR~~~en-GB~0.0.1.0", "Language.Speech~~~en-GB~0.0.1.0", "MathRecognizer~~~~0.0.1.0", "Media.WindowsMediaPlayer~~~~0.0.12.0", "Microsoft.Windows.Ethernet.Client.Intel.E1i68x64~~~~0.0.1.0", "Microsoft.Windows.Ethernet.Client.Intel.E2f68~~~~0.0.1.0", "Microsoft.Windows.Ethernet.Client.Realtek.Rtcx21x64~~~~0.0.1.0", "Microsoft.Windows.Notepad.System~~~~0.0.1.0", "Microsoft.Windows.PowerShell.ISE~~~~0.0.1.0", "Microsoft.Windows.Wifi.Client.Broadcom.Bcmpciedhd63~~~~0.0.1.0", "Microsoft.Windows.Wifi.Client.Broadcom.Bcmwl63a~~~~0.0.1.0", "Microsoft.Windows.Wifi.Client.Broadcom.Bcmwl63al~~~~0.0.1.0", "Microsoft.Windows.Wifi.Client.Intel.Netwbw02~~~~0.0.1.0", "Microsoft.Windows.Wifi.Client.Intel.Netwew00~~~~0.0.1.0", "Microsoft.Windows.Wifi.Client.Intel.Netwew01~~~~0.0.1.0", "Microsoft.Windows.Wifi.Client.Intel.Netwlv64~~~~0.0.1.0", "Microsoft.Windows.Wifi.Client.Intel.Netwns64~~~~0.0.1.0", "Microsoft.Windows.Wifi.Client.Intel.Netwsw00~~~~0.0.1.0", "Microsoft.Windows.Wifi.Client.Intel.Netwtw02~~~~0.0.1.0", "Microsoft.Windows.Wifi.Client.Intel.Netwtw04~~~~0.0.1.0", "Microsoft.Windows.Wifi.Client.Intel.Netwtw06~~~~0.0.1.0", "Microsoft.Windows.Wifi.Client.Intel.Netwtw08~~~~0.0.1.0", "Microsoft.Windows.Wifi.Client.Marvel.Mrvlpcie8897~~~~0.0.1.0", "Microsoft.Windows.Wifi.Client.Qualcomm.Athw8x~~~~0.0.1.0", "Microsoft.Windows.Wifi.Client.Qualcomm.Athwnx~~~~0.0.1.0", "Microsoft.Windows.Wifi.Client.Qualcomm.Qcamain10x64~~~~0.0.1.0", "Microsoft.Windows.Wifi.Client.Ralink.Netr28x~~~~0.0.1.0", "Microsoft.Windows.Wifi.Client.Realtek.Rtl8187se~~~~0.0.1.0", "Microsoft.Windows.Wifi.Client.Realtek.Rtl8192se~~~~0.0.1.0", "Microsoft.Windows.Wifi.Client.Realtek.Rtl819xp~~~~0.0.1.0", "Microsoft.Windows.Wifi.Client.Realtek.Rtl85n64~~~~0.0.1.0", "Microsoft.Windows.Wifi.Client.Realtek.Rtwlane~~~~0.0.1.0", "Microsoft.Windows.Wifi.Client.Realtek.Rtwlane01~~~~0.0.1.0", "Microsoft.Windows.Wifi.Client.Realtek.Rtwlane13~~~~0.0.1.0", "Microsoft.Windows.WordPad~~~~0.0.1.0", "NetFX3~~~~", "OneCoreUAP.OneSync~~~~0.0.1.0", "OpenSSH.Client~~~~0.0.1.0", "Print.Fax.Scan~~~~0.0.1.0", "Print.Management.Console~~~~0.0.1.0", "Windows.Client.ShellComponents~~~~0.0.1.0", "Windows.Kernel.LA57~~~~0.0.1.0" ] } Spoiler: Edited to CapabilitiesPackages.json (./Content) Win11 Build 22000.100 Code: { "Name": [ "Browser.InternetExplorer~~~~0.0.11.0", "DirectX.Configuration.Database~~~~0.0.1.0", "Media.WindowsMediaPlayer~~~~0.0.12.0", "Microsoft.Windows.Notepad.System~~~~0.0.1.0", "Microsoft.Windows.PowerShell.ISE~~~~0.0.1.0", "NetFX3~~~~", "OpenSSH.Client~~~~0.0.1.0", "Print.Fax.Scan~~~~0.0.1.0", "Print.Management.Console~~~~0.0.1.0", "Windows.Client.ShellComponents~~~~0.0.1.0", "Windows.Kernel.LA57~~~~0.0.1.0" ] } ----- Spoiler: Generated FeaturesDisabled.json (./TemplateLists) Win11 Build 22000.100 Code: { "FeatureName": [ "AppServerClient", "Client-DeviceLockdown", "Client-EmbeddedBootExp", "Client-EmbeddedLogon", "Client-EmbeddedShellLauncher", "ClientForNFS-Infrastructure", "Client-KeyboardFilter", "Client-ProjFS", "Client-UnifiedWriteFilter", "Containers", "Containers-DisposableClientVM", "Containers-HNS", "Containers-SDN", "DataCenterBridging", "DirectoryServices-ADAM-Client", "DirectPlay", "HostGuardian", "HypervisorPlatform", "IIS-ApplicationDevelopment", "IIS-ApplicationInit", "IIS-ASP", "IIS-ASPNET", "IIS-ASPNET45", "IIS-BasicAuthentication", "IIS-CertProvider", "IIS-CGI", "IIS-ClientCertificateMappingAuthentication", "IIS-CommonHttpFeatures", "IIS-CustomLogging", "IIS-DefaultDocument", "IIS-DigestAuthentication", "IIS-DirectoryBrowsing", "IIS-FTPExtensibility", "IIS-FTPServer", "IIS-FTPSvc", "IIS-HealthAndDiagnostics", "IIS-HostableWebCore", "IIS-HttpCompressionDynamic", "IIS-HttpCompressionStatic", "IIS-HttpErrors", "IIS-HttpLogging", "IIS-HttpRedirect", "IIS-HttpTracing", "IIS-IIS6ManagementCompatibility", "IIS-IISCertificateMappingAuthentication", "IIS-IPSecurity", "IIS-ISAPIExtensions", "IIS-ISAPIFilter", "IIS-LegacyScripts", "IIS-LegacySnapIn", "IIS-LoggingLibraries", "IIS-ManagementConsole", "IIS-ManagementScriptingTools", "IIS-ManagementService", "IIS-Metabase", "IIS-NetFxExtensibility", "IIS-NetFxExtensibility45", "IIS-ODBCLogging", "IIS-Performance", "IIS-RequestFiltering", "IIS-RequestMonitor", "IIS-Security", "IIS-ServerSideIncludes", "IIS-StaticContent", "IIS-URLAuthorization", "IIS-WebDAV", "IIS-WebServer", "IIS-WebServerManagementTools", "IIS-WebServerRole", "IIS-WebSockets", "IIS-WindowsAuthentication", "IIS-WMICompatibility", "LegacyComponents", "Microsoft-Hyper-V", "Microsoft-Hyper-V-All", "Microsoft-Hyper-V-Hypervisor", "Microsoft-Hyper-V-Management-Clients", "Microsoft-Hyper-V-Management-PowerShell", "Microsoft-Hyper-V-Services", "Microsoft-Hyper-V-Tools-All", "Microsoft-Windows-Subsystem-Linux", "MSMQ-ADIntegration", "MSMQ-Container", "MSMQ-DCOMProxy", "MSMQ-HTTP", "MSMQ-Multicast", "MSMQ-Server", "MSMQ-Triggers", "MultiPoint-Connector", "MultiPoint-Connector-Services", "MultiPoint-Tools", "NetFx4Extended-ASPNET45", "NFS-Administration", "Printing-Foundation-LPDPrintService", "Printing-Foundation-LPRPortMonitor", "ServicesForNFS-ClientOnly", "SimpleTCP", "TelnetClient", "TFTP", "TIFFIFilter", "VirtualMachinePlatform", "WAS-ConfigurationAPI", "WAS-NetFxEnvironment", "WAS-ProcessModel", "WAS-WindowsActivationService", "WCF-HTTP-Activation", "WCF-HTTP-Activation45", "WCF-MSMQ-Activation45", "WCF-NonHTTP-Activation", "WCF-Pipe-Activation45", "WCF-TCP-Activation45", "Windows-Defender-ApplicationGuard", "Windows-Identity-Foundation" ] } Spoiler: Edited to FeaturesToEnable.json (./Content) Win11 Build 22000.100 Code: { "FeatureName": [ "DirectPlay", "LegacyComponents", "Microsoft-Windows-Subsystem-Linux" ] } ----- Spoiler: Generated FeaturesEnabled.json (./TemplateLists) Win11 Build 22000.100 Code: { "FeatureName": [ "MediaPlayback", "MicrosoftWindowsPowerShellV2", "MicrosoftWindowsPowerShellV2Root", "MSRDC-Infrastructure", "NetFx3", "NetFx4-AdvSrvs", "Printing-Foundation-Features", "Printing-Foundation-InternetPrinting-Client", "Printing-PrintToPDFServices-Features", "Printing-XPSServices-Features", "SearchEngine-Client-Package", "SmbDirect", "WCF-Services45", "WCF-TCP-PortSharing45", "Windows-Defender-Default-Definitions", "WindowsMediaPlayer", "WorkFolders-Client" ] } Spoiler: Edited to FeaturesToDisable.json (./Content) Win11 Build 22000.100 Code: { "FeatureName": [ "MicrosoftWindowsPowerShellV2", "MicrosoftWindowsPowerShellV2Root", "MSRDC-Infrastructure", "Printing-XPSServices-Features", "SmbDirect", "WorkFolders-Client" ] } ----- Spoiler: Generated Packages.json (./TemplateLists) Win11 Build 22000.100 Code: { "PackageName": [ "Microsoft-OneCore-ApplicationModel-Sync-Desktop-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-OneCore-DirectX-Database-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Client-LanguagePack-Package~31bf3856ad364e35~amd64~en-GB~10.0.22000.1", "Microsoft-Windows-Ethernet-Client-Intel-E1i68x64-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Ethernet-Client-Intel-E2f68-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Ethernet-Client-Realtek-Rtcx21x64-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-FodMetadata-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Hello-Face-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-InternetExplorer-Optional-Package~31bf3856ad364e35~amd64~~11.0.22000.1", "Microsoft-Windows-InternetExplorer-Optional-Package~31bf3856ad364e35~amd64~en-GB~11.0.22000.1", "Microsoft-Windows-Kernel-LA57-FoD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-LanguageFeatures-Handwriting-en-gb-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-LanguageFeatures-OCR-en-gb-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-LanguageFeatures-Speech-en-gb-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-MediaPlayer-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Notepad-System-FoD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Notepad-System-FoD-Package~31bf3856ad364e35~amd64~en-GB~10.0.22000.1", "Microsoft-Windows-Notepad-System-FoD-Package~31bf3856ad364e35~wow64~~10.0.22000.1", "Microsoft-Windows-Notepad-System-FoD-Package~31bf3856ad364e35~wow64~en-GB~10.0.22000.1", "Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~amd64~en-GB~10.0.22000.1", "Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~wow64~~10.0.22000.1", "Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~wow64~en-GB~10.0.22000.1", "Microsoft-Windows-Printing-PMCPPC-FoD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Printing-PMCPPC-FoD-Package~31bf3856ad364e35~amd64~en-GB~10.0.22000.1", "Microsoft-Windows-Printing-WFS-FoD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Printing-WFS-FoD-Package~31bf3856ad364e35~amd64~en-GB~10.0.22000.1", "Microsoft-Windows-QuickAssist-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-StepsRecorder-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-StepsRecorder-Package~31bf3856ad364e35~amd64~en-GB~10.0.22000.1", "Microsoft-Windows-StepsRecorder-Package~31bf3856ad364e35~wow64~~10.0.22000.1", "Microsoft-Windows-StepsRecorder-Package~31bf3856ad364e35~wow64~en-GB~10.0.22000.1", "Microsoft-Windows-TabletPCMath-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-UserExperience-Desktop-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Broadcom-Bcmpciedhd63-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Broadcom-Bcmwl63a-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Broadcom-Bcmwl63al-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Intel-Netwbw02-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Intel-Netwew00-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Intel-Netwew01-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Intel-Netwlv64-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Intel-Netwns64-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Intel-Netwsw00-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Intel-Netwtw02-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Intel-Netwtw04-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Intel-Netwtw06-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Intel-Netwtw08-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Marvel-Mrvlpcie8897-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Qualcomm-Athw8x-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Qualcomm-Athwnx-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Qualcomm-Qcamain10x64-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Ralink-Netr28x-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Realtek-Rtl8187se-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Realtek-Rtl8192se-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Realtek-Rtl819xp-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Realtek-Rtl85n64-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Realtek-Rtwlane01-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Realtek-Rtwlane13-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-Wifi-Client-Realtek-Rtwlane-FOD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-WordPad-FoD-Package~31bf3856ad364e35~amd64~~10.0.22000.1", "Microsoft-Windows-WordPad-FoD-Package~31bf3856ad364e35~amd64~en-GB~10.0.22000.1", "Microsoft-Windows-WordPad-FoD-Package~31bf3856ad364e35~wow64~~10.0.22000.1", "Microsoft-Windows-WordPad-FoD-Package~31bf3856ad364e35~wow64~en-GB~10.0.22000.1", "OpenSSH-Client-Package~31bf3856ad364e35~amd64~~10.0.22000.1" ] } You may have to follow @KedarWolf's advice on this one as I ignore this (don't remove any) ----- Spoiler: Generated SystemPackages.json (./TemplateLists) Win11 Build 22000.100 Code: { "DisplayName": [ "Microsoft.AAD.BrokerPlugin", "Microsoft.AccountsControl", "Microsoft.AsyncTextService", "Microsoft.BioEnrollment", "Microsoft.CredDialogHost", "Microsoft.ECApp", "Microsoft.LockApp", "Microsoft.MicrosoftEdge", "Microsoft.MicrosoftEdgeDevToolsClient", "Microsoft.UI.Xaml.CBS", "Microsoft.Win32WebViewHost", "Microsoft.Windows.AddSuggestedFoldersToLibarayDialog", "Microsoft.Windows.AppRep.ChxApp", "Microsoft.Windows.AppResolverUX", "Microsoft.Windows.AssignedAccessLockApp", "Microsoft.Windows.CallingShellApp", "Microsoft.Windows.CapturePicker", "Microsoft.Windows.CloudExperienceHost", "Microsoft.Windows.ContentDeliveryManager", "Microsoft.Windows.FileExplorer", "Microsoft.Windows.FilePicker", "Microsoft.Windows.NarratorQuickStart", "Microsoft.Windows.OOBENetworkCaptivePortal", "Microsoft.Windows.OOBENetworkConnectionFlow", "Microsoft.Windows.ParentalControls", "Microsoft.Windows.PeopleExperienceHost", "Microsoft.Windows.PinningConfirmationDialog", "Microsoft.Windows.Search", "Microsoft.Windows.SecureAssessmentBrowser", "Microsoft.Windows.ShellExperienceHost", "Microsoft.Windows.StartMenuExperienceHost", "Microsoft.Windows.XGpuEjectDialog", "Microsoft.XboxGameCallableUI", "MicrosoftWindows.Client.CBS", "MicrosoftWindows.UndockedDevKit", "NcsiUwpApp", "Windows.CBSPreview", "windows.immersivecontrolpanel", "Windows.PrintDialog" ] } Spoiler: Edited to SystemAppXWhitelist.json (./Content) Win11 Build 22000.100 Code: { "DisplayName": [ "Microsoft.AccountsControl", "Microsoft.AsyncTextService", "Microsoft.CredDialogHost", "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.FileExplorer", "Microsoft.Windows.PinningConfirmationDialog", "Microsoft.Windows.Search", "Microsoft.Windows.SecureAssessmentBrowser", "Microsoft.Windows.ShellExperienceHost", "Microsoft.Windows.StartMenuExperienceHost", "Microsoft.Windows.XGpuEjectDialog", "Microsoft.XboxGameCallableUI", "MicrosoftWindows.Client.CBS", "MicrosoftWindows.UndockedDevKit", "Windows.CBSPreview", "windows.immersivecontrolpanel", "Windows.PrintDialog" ] } ----- Spoiler: Win11 en-GB Build 22000.100 O-O TEST Log Code: *************************************************************************************************** Running Module : Optimize-Offline 4.0.1.8 Optimize Start : 08/04/2021 11:16:35 AM Identity Name : W0LF Computer Name : DESKTOP-W0LF-PC *************************************************************************************************** 2021-08-04T11:16:35 [INFO]: Supported Image Build: [22000] 2021-08-04T11:16:38 [INFO]: Mounting Windows 11 Enterprise 2021-08-04T11:17:35 [INFO]: Pre-Optimization Image Health State: [Healthy] 2021-08-04T11:17:40 [INFO]: Removing Provisioned App Package: Microsoft.BingNews 2021-08-04T11:17:43 [INFO]: Removing Provisioned App Package: Microsoft.BingWeather 2021-08-04T11:17:47 [INFO]: Removing Provisioned App Package: Microsoft.GetHelp 2021-08-04T11:17:50 [INFO]: Removing Provisioned App Package: Microsoft.Getstarted 2021-08-04T11:17:54 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftOfficeHub 2021-08-04T11:17:57 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftSolitaireCollection 2021-08-04T11:18:00 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftStickyNotes 2021-08-04T11:18:04 [INFO]: Removing Provisioned App Package: Microsoft.Paint 2021-08-04T11:18:07 [INFO]: Removing Provisioned App Package: Microsoft.People 2021-08-04T11:18:11 [INFO]: Removing Provisioned App Package: Microsoft.Todos 2021-08-04T11:18:14 [INFO]: Removing Provisioned App Package: Microsoft.Windows.Photos 2021-08-04T11:18:18 [INFO]: Removing Provisioned App Package: Microsoft.WindowsAlarms 2021-08-04T11:18:21 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCalculator 2021-08-04T11:18:25 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCamera 2021-08-04T11:18:28 [INFO]: Removing Provisioned App Package: microsoft.windowscommunicationsapps 2021-08-04T11:18:32 [INFO]: Removing Provisioned App Package: Microsoft.WindowsFeedbackHub 2021-08-04T11:18:36 [INFO]: Removing Provisioned App Package: Microsoft.WindowsMaps 2021-08-04T11:18:39 [INFO]: Removing Provisioned App Package: Microsoft.WindowsNotepad 2021-08-04T11:18:43 [INFO]: Removing Provisioned App Package: Microsoft.WindowsSoundRecorder 2021-08-04T11:18:46 [INFO]: Removing Provisioned App Package: Microsoft.YourPhone 2021-08-04T11:18:50 [INFO]: Removing Provisioned App Package: Microsoft.ZuneMusic 2021-08-04T11:18:53 [INFO]: Removing Provisioned App Package: Microsoft.ZuneVideo 2021-08-04T11:19:04 [INFO]: Removing System App: Microsoft.AAD.BrokerPlugin 2021-08-04T11:19:06 [INFO]: Removing System App: Microsoft.BioEnrollment 2021-08-04T11:19:08 [INFO]: Removing System App: Microsoft.ECApp 2021-08-04T11:19:10 [INFO]: Removing System App: Microsoft.LockApp 2021-08-04T11:19:12 [INFO]: Removing System App: Microsoft.MicrosoftEdge 2021-08-04T11:19:14 [INFO]: Removing System App: Microsoft.MicrosoftEdgeDevToolsClient 2021-08-04T11:19:16 [INFO]: Removing System App: Microsoft.Windows.AddSuggestedFoldersToLibarayDialog 2021-08-04T11:19:18 [INFO]: Removing System App: Microsoft.Windows.FilePicker 2021-08-04T11:19:20 [INFO]: Removing System App: Microsoft.Windows.NarratorQuickStart 2021-08-04T11:19:22 [INFO]: Removing System App: Microsoft.Windows.OOBENetworkCaptivePortal 2021-08-04T11:19:24 [INFO]: Removing System App: Microsoft.Windows.OOBENetworkConnectionFlow 2021-08-04T11:19:26 [INFO]: Removing System App: Microsoft.Windows.ParentalControls 2021-08-04T11:19:28 [INFO]: Removing System App: Microsoft.Windows.PeopleExperienceHost 2021-08-04T11:19:30 [INFO]: Removing System App: NcsiUwpApp 2021-08-04T11:19:33 [INFO]: Disabling Services, Drivers and Integration Content for Removed Apps. 2021-08-04T11:19:40 [INFO]: Removing Windows Biometric Capability Packages. 2021-08-04T11:19:50 [INFO]: Importing Custom App Associations. 2021-08-04T11:19:55 [INFO]: Removing Windows Capability: App.StepsRecorder 2021-08-04T11:20:00 [INFO]: Removing Windows Capability: App.Support.QuickAssist 2021-08-04T11:20:05 [INFO]: Removing Windows Capability: Language.Handwriting 2021-08-04T11:20:09 [INFO]: Removing Windows Capability: Language.OCR 2021-08-04T11:20:14 [INFO]: Removing Windows Capability: Language.Speech 2021-08-04T11:20:19 [INFO]: Removing Windows Capability: MathRecognizer 2021-08-04T11:20:24 [INFO]: Removing Windows Capability: Microsoft.Windows.Ethernet.Client.Intel.E1i68x64 2021-08-04T11:20:30 [INFO]: Removing Windows Capability: Microsoft.Windows.Ethernet.Client.Intel.E2f68 2021-08-04T11:20:34 [INFO]: Removing Windows Capability: Microsoft.Windows.Ethernet.Client.Realtek.Rtcx21x64 2021-08-04T11:20:39 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Broadcom.Bcmpciedhd63 2021-08-04T11:20:44 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Broadcom.Bcmwl63a 2021-08-04T11:20:49 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Broadcom.Bcmwl63al 2021-08-04T11:20:54 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwbw02 2021-08-04T11:21:01 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwew00 2021-08-04T11:21:06 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwew01 2021-08-04T11:21:12 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwlv64 2021-08-04T11:21:18 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwns64 2021-08-04T11:21:24 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwsw00 2021-08-04T11:21:30 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwtw02 2021-08-04T11:21:39 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwtw04 2021-08-04T11:21:46 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwtw06 2021-08-04T11:21:53 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Intel.Netwtw08 2021-08-04T11:22:00 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Marvel.Mrvlpcie8897 2021-08-04T11:22:05 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Qualcomm.Athw8x 2021-08-04T11:22:12 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Qualcomm.Athwnx 2021-08-04T11:22:19 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Qualcomm.Qcamain10x64 2021-08-04T11:22:26 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Ralink.Netr28x 2021-08-04T11:22:32 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtl8187se 2021-08-04T11:22:38 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtl8192se 2021-08-04T11:22:44 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtl819xp 2021-08-04T11:22:50 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtl85n64 2021-08-04T11:22:57 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtwlane 2021-08-04T11:23:03 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtwlane01 2021-08-04T11:23:10 [INFO]: Removing Windows Capability: Microsoft.Windows.Wifi.Client.Realtek.Rtwlane13 2021-08-04T11:23:16 [INFO]: Removing Windows Capability: Microsoft.Windows.WordPad 2021-08-04T11:23:22 [INFO]: Removing Windows Capability: OneCoreUAP.OneSync 2021-08-04T11:23:34 [INFO]: Disabling Optional Feature: MicrosoftWindowsPowerShellV2Root 2021-08-04T11:23:44 [INFO]: Disabling Optional Feature: MSRDC-Infrastructure 2021-08-04T11:23:49 [INFO]: Disabling Optional Feature: Printing-XPSServices-Features 2021-08-04T11:23:55 [INFO]: Disabling Optional Feature: SmbDirect 2021-08-04T11:24:01 [INFO]: Disabling Optional Feature: WorkFolders-Client 2021-08-04T11:24:10 [INFO]: Enabling Optional Feature: DirectPlay 2021-08-04T11:24:17 [INFO]: Enabling Optional Feature: LegacyComponents 2021-08-04T11:24:21 [INFO]: Enabling Optional Feature: Microsoft-Windows-Subsystem-Linux 2021-08-04T11:24:31 [INFO]: Integrating the Win32 Calculator. 2021-08-04T11:24:35 [INFO]: Applying Optimized Registry Settings. 2021-08-04T11:24:55 [INFO]: Applying Setup Content. 2021-08-04T11:24:58 [INFO]: Importing Registry Template: Additional Tweaks.reg 2021-08-04T11:25:04 [INFO]: Cleaning-up the Start Menu Layout. 2021-08-04T11:25:08 [INFO]: Disabling automatic driver update 2021-08-04T11:25:09 [INFO]: Enabling dormant OneDrive fix 2021-08-04T11:25:14 [INFO]: Post-Optimization Image Health State: [Healthy] 2021-08-04T11:25:17 [INFO]: Saving and Dismounting Windows 11 Enterprise 2021-08-04T11:26:56 [INFO]: Rebuilding and Exporting Windows 11 Enterprise using Maximum compression. 2021-08-04T11:27:17 [INFO]: Finalizing Optimizations. 2021-08-04T11:27:17 [INFO]: Optimize-Offline completed in [11] minutes with [0] errors. *************************************************************************************************** Optimizations Finalized : 08/04/2021 11:27:17 AM *************************************************************************************************** ----- Still have some additional stuff to do (regarding my personal requirements), but all in all script appears to work without issue (as far as i can tell)
Everyone here is trying to encourage you, but you're way-way-way over your head! You're in the land of coding now. Coding isn't an expressive writing class where if you forget a comma your teacher circles it with a red pen and gives you a bad mark. Instead you get some confusing error and you have to stare at your code and find your own stupid mistake. Sure you can keep posting your crap mistakes here, but there may come a time when no one replies! Spoiler: Here is your new master. Obey these Configuration.json rules, slave! Code: "Configuration.json FORMATTING", "Commas", "Other than exceptions, the following lines END with a comma:", "1. Closing brackets", "2. Parameter lines", "3. Lines in this INFO comment section", "Exceptions - the only lines without end-commas:", "1. Lines that end with a starting bracket", "2. The last line prior to a closing bracket", "3. The final closing bracket", "", "Quote marks", "In the INFO comment STRING section", "Are only allowed at the beginning & end of a line", "", "Other Quote marks & Commas", "Follow the OEM Instructions", "Respect the observed Configuration.json pattern", "", Fun fact. Your missing a comma after a true [big hint]. I could tell you where it is, but if you find it, then you will feel like you achieved something!