open powershell, change directory to location of "Start-Optimize.ps1", execute it, now (hopefully) you'll see the error that it's reporting
Did you do any additional steps besides those described in this post? https://forums.mydigitallife.net/th...20h1-and-ltsc-2019.80038/page-11#post-1573297
{ "_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": "E:\\1\\Win.iso", "WindowsApps": "All", "SystemApps": true, "Capabilities": true, "Packages": true, "Features": true, "DeveloperMode": false, "WindowsStore": false, "MicrosoftEdge": false, "Win32Calc": true, "Dedup": false, "DaRT": [ ], "Registry": true, "Additional": { "Setup": false, "Wallpaper": false, "SystemLogo": false, "LockScreen": false, "RegistryTemplates": false, "LayoutModification": false, "Unattend": false, "Drivers": false, "NetFx3": false }, "ComponentCleanup": false, "ISO": "No-Prompt" }
Better to insert the stuff as code like below or formatting gets messed up. Then we can tell better if there are any errors. 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\\Kedar\\Downloads\\en_windows_10_business_editions_version_21h1_updated_jun_2021_x64_dvd_8222df3d.iso", "WindowsApps": "Select", "SystemApps": true, "Capabilities": true, "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": false, "Unattend": false, "Drivers": true, "NetFx3": true }, "ComponentCleanup": false, "ISO": "No-Prompt" }
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": "E:\\1\\Win.iso", "WindowsApps": "All", "SystemApps": true, "Capabilities": true, "Packages": true, "Features": true, "DeveloperMode": false, "WindowsStore": false, "MicrosoftEdge": false, "Win32Calc": true, "Dedup": false, "DaRT": [ ], "Registry": true, "Additional": { "Setup": false, "Wallpaper": false, "SystemLogo": false, "LockScreen": false, "RegistryTemplates": false, "LayoutModification": false, "Unattend": false, "Drivers": false, "NetFx3": false }, "ComponentCleanup": false, "ISO": "No-Prompt" }
mount the ISO, then run Code: dism /Get-WimInfo /WimFile:x:\sources\install.wim /index:1 at admin CMD (x=mounted drive) and report what you see.
https://forums.mydigitallife.net/th...-20h1-and-ltsc-2019.80038/page-8#post-1569377 Code: Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass Run that before you run the script.
Powershell accepts unix like paths so type in Code: ./Start-Optimize.ps1 not Code: Start-Optimize.ps1
If anyone wants a Windows 11 ISO that doesn't require TPM or Secure Boot enabled, add the following lines to the \Optimize-Offline-4.0.1.8\Optimize-Offline-4.0.1.8\Content\Additional\RegistryTemplates\Additional Tweaks.reg file. Code: [HKLM\SYSTEM\Setup\LabConfig] "BypassTPMCheck"=dword:00000001 "BypassSecureBootCheck"=dword:00000001 "BypassRAMCheck" = dword: 00000001 "BypassStorageCheck" = dword: 00000001