Optimize-Offline Guide - Windows Debloating Tool, Windows 1803, 1903, 19H2, 1909, 20H1 and LTSC 2019

Discussion in 'Windows 10' started by KedarWolf, Jul 30, 2019.

  1. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    874
    30
    #1041 KedarWolf, Aug 1, 2021
    Last edited: Aug 1, 2021
    (OP)
    Now if you can just add a Remove Windows Packages option with the mostly useless below added to the json by default, then the script will be totally automated!

    Code:
    {
        "WindowsPackageName" : [
            "Microsoft-Windows-LangaugeFeatures-Handwriting-en-us-Package~31bf3856ad364e35~amd64~~10.0.19041.1",
            "Microsoft-Windows-LanguageFeatures-OCR-en-us-Package~31bf3856ad364e35~amd64~~10.0.19041.1",
            "Microsoft-Windows-LanguageFeatures-Speech-en-us-Package~31bf3856ad364e35~amd64~~10.0.19041.1"
        ]
    }
     
  2. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    365
    540
    10
    Hey bro! You may want to edit your request "LangaugeFeatiures" is a typo. I believe.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    365
    540
    10
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. zbigniew59

    zbigniew59 MDL Senior Member

    May 14, 2016
    373
    171
    10
    #1045 zbigniew59, Aug 1, 2021
    Last edited: Aug 1, 2021
    Works well for culture pl- PL -
    {
    "_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:\\1\\sources\\install.wim",
    "WindowsApps": "Whitelist",
    "SystemApps": "Whitelist",
    "Capabilities": "Whitelist",
    "Packages": false,
    "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": true,
    "ISO": "No-Prompt",
    "CompressionType": "Maximum",
    "SelectiveRegistry": {
    "DisableWindowsUpdate": true,
    "DisableDriverUpdate": true
    }
    }

    ***************************************************************************************************
    Running Module : Optimize-Offline 4.0.1.7
    Optimize Start : 08/01/2021 06:18:00 AM
    Identity Name : Zbyszek
    Computer Name : ZBYSZEK-PC
    ***************************************************************************************************
    2021-08-01T06:18:00 [INFO]: Supported Image Build: [19044]
    2021-08-01T06:18:03 [INFO]: Mounting Windows 10 Education
    2021-08-01T06:18:41 [INFO]: Pre-Optimization Image Health State: [Healthy]
    2021-08-01T06:18:47 [INFO]: Removing Provisioned App Package: CortanaApp.View.App
    2021-08-01T06:18:50 [INFO]: Removing Provisioned App Package: Microsoft.DesktopAppInstaller
    2021-08-01T06:18:53 [INFO]: Removing Provisioned App Package: Microsoft.GetHelp
    2021-08-01T06:18:56 [INFO]: Removing Provisioned App Package: Microsoft.Getstarted
    2021-08-01T06:18:58 [INFO]: Removing Provisioned App Package: Microsoft.HEIFImageExtension
    2021-08-01T06:19:01 [INFO]: Removing Provisioned App Package: Microsoft.Microsoft3DViewer
    2021-08-01T06:19:04 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftOfficeHub
    2021-08-01T06:19:07 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftSolitaireCollection
    2021-08-01T06:19:10 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftStickyNotes
    2021-08-01T06:19:12 [INFO]: Removing Provisioned App Package: Microsoft.MixedReality.Portal
    2021-08-01T06:19:15 [INFO]: Removing Provisioned App Package: Microsoft.MSPaint
    2021-08-01T06:19:18 [INFO]: Removing Provisioned App Package: Microsoft.Office.OneNote
    2021-08-01T06:19:21 [INFO]: Removing Provisioned App Package: Microsoft.People
    2021-08-01T06:19:24 [INFO]: Removing Provisioned App Package: Microsoft.ScreenSketch
    2021-08-01T06:19:26 [INFO]: Removing Provisioned App Package: Microsoft.SkypeApp
    2021-08-01T06:19:29 [INFO]: Removing Provisioned App Package: Microsoft.Wallet
    2021-08-01T06:19:32 [INFO]: Removing Provisioned App Package: Microsoft.Windows.Photos
    2021-08-01T06:19:35 [INFO]: Removing Provisioned App Package: Microsoft.WindowsAlarms
    2021-08-01T06:19:38 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCalculator
    2021-08-01T06:19:41 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCamera
    2021-08-01T06:19:43 [INFO]: Removing Provisioned App Package: microsoft.windowscommunicationsapps
    2021-08-01T06:19:47 [INFO]: Removing Provisioned App Package: Microsoft.WindowsFeedbackHub
    2021-08-01T06:19:49 [INFO]: Removing Provisioned App Package: Microsoft.WindowsMaps
    2021-08-01T06:19:52 [INFO]: Removing Provisioned App Package: Microsoft.WindowsSoundRecorder
    2021-08-01T06:19:55 [INFO]: Removing Provisioned App Package: Microsoft.Xbox.TCUI
    2021-08-01T06:19:58 [INFO]: Removing Provisioned App Package: Microsoft.XboxApp
    2021-08-01T06:20:01 [INFO]: Removing Provisioned App Package: Microsoft.XboxGameOverlay
    2021-08-01T06:20:03 [INFO]: Removing Provisioned App Package: Microsoft.XboxGamingOverlay
    2021-08-01T06:20:06 [INFO]: Removing Provisioned App Package: Microsoft.XboxIdentityProvider
    2021-08-01T06:20:09 [INFO]: Removing Provisioned App Package: Microsoft.XboxSpeechToTextOverlay
    2021-08-01T06:20:12 [INFO]: Removing Provisioned App Package: Microsoft.YourPhone
    2021-08-01T06:20:14 [INFO]: Removing Provisioned App Package: Microsoft.ZuneMusic
    2021-08-01T06:20:17 [INFO]: Removing Provisioned App Package: Microsoft.ZuneVideo
    2021-08-01T06:20:27 [INFO]: Removing System App: Microsoft.AAD.BrokerPlugin
    2021-08-01T06:20:29 [INFO]: Removing System App: Microsoft.BioEnrollment
    2021-08-01T06:20:31 [INFO]: Removing System App: Microsoft.ECApp
    2021-08-01T06:20:33 [INFO]: Removing System App: Microsoft.LockApp
    2021-08-01T06:20:35 [INFO]: Removing System App: Microsoft.Win32WebViewHost
    2021-08-01T06:20:37 [INFO]: Removing System App: Microsoft.Windows.AddSuggestedFoldersToLibarayDialog
    2021-08-01T06:20:39 [INFO]: Removing System App: Microsoft.Windows.CallingShellApp
    2021-08-01T06:20:41 [INFO]: Removing System App: Microsoft.Windows.FileExplorer
    2021-08-01T06:20:43 [INFO]: Removing System App: Microsoft.Windows.FilePicker
    2021-08-01T06:20:45 [INFO]: Removing System App: Microsoft.Windows.ParentalControls
    2021-08-01T06:20:47 [INFO]: Removing System App: Microsoft.Windows.PeopleExperienceHost
    2021-08-01T06:20:49 [INFO]: Removing System App: Microsoft.Windows.SecHealthUI
    2021-08-01T06:20:51 [INFO]: Removing System App: Microsoft.Windows.XGpuEjectDialog
    2021-08-01T06:20:53 [INFO]: Removing System App: Microsoft.XboxGameCallableUI
    2021-08-01T06:20:55 [INFO]: Removing System App: Windows.CBSPreview
    2021-08-01T06:20:58 [INFO]: Disabling Services, Drivers and Integration Content for Removed Apps.
    2021-08-01T06:21:04 [INFO]: Removing Windows Biometric Capability Packages.
    2021-08-01T06:21:16 [INFO]: Disabling Optional Feature: Windows-Defender-Default-Definitions
    2021-08-01T06:21:19 [INFO]: Importing Custom App Associations.
    2021-08-01T06:21:23 [INFO]: Removing Windows Capability: App.StepsRecorder
    2021-08-01T06:21:26 [INFO]: Removing Windows Capability: App.Support.QuickAssist
    2021-08-01T06:21:30 [INFO]: Removing Windows Capability: MathRecognizer
    2021-08-01T06:21:33 [INFO]: Removing Windows Capability: Media.WindowsMediaPlayer
    2021-08-01T06:21:38 [INFO]: Removing Windows Capability: Microsoft.Windows.WordPad
    2021-08-01T06:21:41 [INFO]: Removing Windows Capability: OneCoreUAP.OneSync
    2021-08-01T06:21:45 [INFO]: Removing Windows Capability: OpenSSH.Client
    2021-08-01T06:21:52 [INFO]: Disabling Optional Feature: MicrosoftWindowsPowerShellV2Root
    2021-08-01T06:21:58 [INFO]: Disabling Optional Feature: MSRDC-Infrastructure
    2021-08-01T06:22:01 [INFO]: Disabling Optional Feature: Printing-XPSServices-Features
    2021-08-01T06:22:04 [INFO]: Disabling Optional Feature: SmbDirect
    2021-08-01T06:22:07 [INFO]: Disabling Optional Feature: WorkFolders-Client
    2021-08-01T06:22:15 [INFO]: Integrating the Win32 Calculator.
    2021-08-01T06:22:17 [INFO]: Applying Optimized Registry Settings.
    2021-08-01T06:22:27 [INFO]: Applying Setup Content.
    2021-08-01T06:22:30 [INFO]: Importing Registry Template: Additional Tweaks.reg
    2021-08-01T06:22:36 [INFO]: Cannot perform a clean-up of the Component Store while there are pending installations.
    2021-08-01T06:22:36 [INFO]: Cleaning-up the Start Menu Layout.
    2021-08-01T06:22:39 [INFO]: Disabling Windows Update
    2021-08-01T06:22:41 [INFO]: Disabling automatic driver update
    2021-08-01T06:22:45 [INFO]: Post-Optimization Image Health State: [Healthy]
    2021-08-01T06:22:48 [INFO]: Saving and Dismounting Windows 10 Education
    2021-08-01T06:23:58 [INFO]: Rebuilding and Exporting Windows 10 Education using Maximum compression.
    2021-08-01T06:24:17 [INFO]: Finalizing Optimizations.
    2021-08-01T06:24:17 [INFO]: Optimize-Offline completed in [6] minutes with [0] errors.
    ***************************************************************************************************
    Optimizations Finalized : 08/01/2021 06:24:17 AM
    ***************************************************************************************************

    Disabling Cortana and Search Bar Web Connectivity.
    Disabling System Telemetry, Logging, Data Collecting and Advertisements.
    Disabling Windows Tracking.
    Disabling System Location Sensors.
    Disabling the Prompt to make Microsoft Edge the default browser.
    Disabling the Password Reveal Button.
    Disabling Cross-Device Sharing and Shared Experiences.
    Disabling WiFi Sense.
    Disabling Microsoft Toast and Lockscreen Notifications.
    Disabling Connected Drive Autoplay and Autorun.
    Disabling Automatic Download File Blocking.
    Disabling the Modern UI Swap File.
    Disabling Reserved Storage.
    Disabling the Automatic Clean-up of Downloads by Storage Sense.
    Disabling the First Log-on Animation.
    Disabling the Windows Start-up Sound.
    Disabling the Get More out of Windows Start-up Notification.
    Enabling the Search Icon on Taskbar.
    Enabling the Driver Letter before Drive Name.
    Optimizing Taskbar Icons and Transparency.
    Enabling File Explorer Launch to This PC.
    Disabling Wallpaper .JPEG Quality Reduction.
    Disabling the Sign-in Screen Acrylic Blur.
    Disabling the Trailing Text for Shortcuts.
    Enabling Command Prompt on the Win+X Quick Link Menu.
    Disabling Microsoft Edge Desktop Shortcut Creation and Pre-Launching.
    Disabling Pinned Windows Store, Windows Mail and People Icons.
    Reducing Start Menu Delay.
    Enabling TaskBar Icon Combining with Small Icons.
    Disabling the Open File Prompt.
    Enabling the Classic Personalization Panel.
    Enabling This PC Desktop Icon.
    Removing Edit with Paint 3D and 3D Print from the Context Menu.
    Restoring Windows Photo Viewer.
    Removing User Folders from Explorer.
    Increasing the Icon Cache Size.
    Disabling the Sticky Keys Prompt.
    Disabling Enhanced Pointer Precision.
    Removing Give Access To, Share and Cast To Device from the Context Menu.
    Removing Restore Previous Versions from the Context Menu.
    Adding Reboot to Recovery to This PC.
    Enabling Long File Paths.
    Enabling Strong Cryptography for .NET Applications.
    Disabling OneDrive from installing until requested.
     
  5. ahczwudichao

    ahczwudichao MDL Junior Member

    May 1, 2013
    95
    79
    0
    #1046 ahczwudichao, Aug 1, 2021
    Last edited: Aug 1, 2021
    It's in a different location, load the registry hive on mounted wim you will find no "OneDriveSetup" on HKCU branch.

    On live Win11 you can find in below location: HKEY_USERS\S-1-5-19\Software\Microsoft\Windows\CurrentVersion\Run (S-1-5-19 as a random user)

    So for offline Wim the default hive have to be mounted:

    reg load "HKLM\OfflineNTUSER" "D:\WIMTweaker\Mount\Users\Default\NTUSER.DAT"
    reg delete "HKLM\OfflineNTUSER\Software\Microsoft\Windows\CurrentVersion\Run" /v "OneDriveSetup" /f
    reg unload "HKLM\OfflineNTUSER"
     
  6. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    365
    540
    10
    #1047 spanishfly, Aug 1, 2021
    Last edited: Aug 1, 2021
    I think your proposed solution is totally correct and likily reflects the current reality and would work.
    I haven't bothered to look into it very deeply since I've always had success by deleting the key I've offered.
    A number of builds ago, I noticed that my proposed key doesn't appear anymore. After I saw that, I did a test and found that if I *don't* remove my non-existent "ghost" registry key from the mounted hive, than it suddenly appears and auto-runs OneDrive on first start-up.
    If I delete my "ghost" key from the hive, then OneDrive doesn't run on initial OS install and remains dormant. Sometimes I like to know "why?", but in this case, it's so consistently 'true' that I just accept the reality of this truth and move on. I've deleted my proposed key since W10 1607 and I've recently deleted my "ghost" key from the hives of several builds of Windows 11 and it still works!

    I'm not attached to what key or keys gets removed, so If your proposed solution works, and if it 'feels' better to everyone, than I'm happy to go with your solution.
    All I want is to continue enjoying a docile, puppy dog OneDrive that obeys my commands!
    I'm also completely content to continue to manually add my key deletion tweak to "Set-RegistryProperties.ps1" It's just part of what I "always do" when I download a fresh Optimize Offline.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. gdeliana

    gdeliana MDL Senior Member

    Oct 2, 2010
    365
    428
    10
    I am sorry, but i cannot reproduce the problem, seems like the script is expecting a boolean (true/false) and it got a string, this tells me that the script was not modified to accept string parameter such as Whitelist, Blacklist.
     
  8. gdeliana

    gdeliana MDL Senior Member

    Oct 2, 2010
    365
    428
    10
    Ok then perfect will add the dormant version right away:
    Code:
    if($SelectiveRegistry.DormantOneDrive -eq $true) {
        Log $OptimizeData.DormantOneDrive
        RegKey Remove-ItemProperty -Path "HKLM:\WIM_HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" -Name "OneDriveSetup" -Force
        Start-Sleep 1
    }
    In the future will try to update the onedrive complete removal script on offline wim image, of course this option would implicate breaking the SFC test, but hey for some of us it doesn't matter :p
     
  9. gdeliana

    gdeliana MDL Senior Member

    Oct 2, 2010
    365
    428
    10
    #1050 gdeliana, Aug 1, 2021
    Last edited: Aug 1, 2021
    Hahah ok will do also the last piece of the puzzle :cool: Wasn't using this part myself, because i was unsure if something could be damaged in the windows image, but now will be using this as well :rolleyes:
     
  10. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    874
    30
    I remove those three things with zero problems on my ISO or Windows. :)
     
  11. Mavericks Choice

    Mavericks Choice MDL Guru

    Aug 5, 2015
    3,320
    13,909
    120
    @gdeliana I'm now able to fully automate OO to my liking, your fork is fantastic.

    ***************************************************************************************************
    Running Module : Optimize-Offline 4.0.1.7
    Optimize Start : 08/01/2021 05:09:48 PM
    Identity Name : MC's
    Computer Name : MC's
    ***************************************************************************************************

    2021-08-01T17:09:48 [INFO]: Supported Image Build: [19041]
    2021-08-01T17:09:51 [INFO]: Mounting Windows 10 Pro
    2021-08-01T17:10:22 [INFO]: Pre-Optimization Image Health State: [Healthy]
    2021-08-01T17:10:28 [INFO]: Removing Provisioned App Package: CortanaApp.View.App
    2021-08-01T17:10:31 [INFO]: Removing Provisioned App Package: Microsoft.BingWeather
    2021-08-01T17:10:34 [INFO]: Removing Provisioned App Package: Microsoft.DesktopAppInstaller
    2021-08-01T17:10:37 [INFO]: Removing Provisioned App Package: Microsoft.GetHelp
    2021-08-01T17:10:39 [INFO]: Removing Provisioned App Package: Microsoft.Getstarted
    2021-08-01T17:10:42 [INFO]: Removing Provisioned App Package: Microsoft.Microsoft3DViewer
    2021-08-01T17:10:45 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftOfficeHub
    2021-08-01T17:10:48 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftSolitaireCollection
    2021-08-01T17:10:50 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftStickyNotes
    2021-08-01T17:10:53 [INFO]: Removing Provisioned App Package: Microsoft.MixedReality.Portal
    2021-08-01T17:10:55 [INFO]: Removing Provisioned App Package: Microsoft.MSPaint
    2021-08-01T17:10:58 [INFO]: Removing Provisioned App Package: Microsoft.Office.OneNote
    2021-08-01T17:11:01 [INFO]: Removing Provisioned App Package: Microsoft.People
    2021-08-01T17:11:03 [INFO]: Removing Provisioned App Package: Microsoft.ScreenSketch
    2021-08-01T17:11:06 [INFO]: Removing Provisioned App Package: Microsoft.SkypeApp
    2021-08-01T17:11:09 [INFO]: Removing Provisioned App Package: Microsoft.StorePurchaseApp
    2021-08-01T17:11:11 [INFO]: Removing Provisioned App Package: Microsoft.Wallet
    2021-08-01T17:11:14 [INFO]: Removing Provisioned App Package: Microsoft.WindowsAlarms
    2021-08-01T17:11:17 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCamera
    2021-08-01T17:11:19 [INFO]: Removing Provisioned App Package: microsoft.windowscommunicationsapps
    2021-08-01T17:11:22 [INFO]: Removing Provisioned App Package: Microsoft.WindowsFeedbackHub
    2021-08-01T17:11:25 [INFO]: Removing Provisioned App Package: Microsoft.WindowsMaps
    2021-08-01T17:11:28 [INFO]: Removing Provisioned App Package: Microsoft.WindowsSoundRecorder
    2021-08-01T17:11:31 [INFO]: Removing Provisioned App Package: Microsoft.Xbox.TCUI
    2021-08-01T17:11:33 [INFO]: Removing Provisioned App Package: Microsoft.XboxApp
    2021-08-01T17:11:36 [INFO]: Removing Provisioned App Package: Microsoft.XboxGameOverlay
    2021-08-01T17:11:38 [INFO]: Removing Provisioned App Package: Microsoft.XboxGamingOverlay
    2021-08-01T17:11:41 [INFO]: Removing Provisioned App Package: Microsoft.XboxIdentityProvider
    2021-08-01T17:11:44 [INFO]: Removing Provisioned App Package: Microsoft.XboxSpeechToTextOverlay
    2021-08-01T17:11:46 [INFO]: Removing Provisioned App Package: Microsoft.ZuneMusic
    2021-08-01T17:11:49 [INFO]: Removing Provisioned App Package: Microsoft.ZuneVideo
    2021-08-01T17:11:58 [INFO]: Removing System App: Microsoft.AAD.BrokerPlugin
    2021-08-01T17:12:00 [INFO]: Removing System App: Microsoft.BioEnrollment
    2021-08-01T17:12:02 [INFO]: Removing System App: Microsoft.ECApp
    2021-08-01T17:12:04 [INFO]: Removing System App: Microsoft.LockApp
    2021-08-01T17:12:06 [INFO]: Removing System App: Microsoft.MicrosoftEdge
    2021-08-01T17:12:08 [INFO]: Removing System App: Microsoft.MicrosoftEdgeDevToolsClient
    2021-08-01T17:12:10 [INFO]: Removing System App: Microsoft.Win32WebViewHost
    2021-08-01T17:12:12 [INFO]: Removing System App: Microsoft.Windows.AddSuggestedFoldersToLibarayDialog
    2021-08-01T17:12:14 [INFO]: Removing System App: Microsoft.Windows.ContentDeliveryManager
    2021-08-01T17:12:17 [INFO]: Removing System App: Microsoft.Windows.FileExplorer
    2021-08-01T17:12:19 [INFO]: Removing System App: Microsoft.Windows.FilePicker
    2021-08-01T17:12:21 [INFO]: Removing System App: Microsoft.Windows.ParentalControls
    2021-08-01T17:12:23 [INFO]: Removing System App: Microsoft.Windows.PeopleExperienceHost
    2021-08-01T17:12:25 [INFO]: Removing System App: Microsoft.Windows.SecHealthUI
    2021-08-01T17:12:27 [INFO]: Removing System App: Microsoft.Windows.SecureAssessmentBrowser
    2021-08-01T17:12:29 [INFO]: Removing System App: Microsoft.Windows.XGpuEjectDialog
    2021-08-01T17:12:31 [INFO]: Removing System App: Microsoft.XboxGameCallableUI
    2021-08-01T17:12:34 [INFO]: Disabling Services, Drivers and Integration Content for Removed Apps.
    2021-08-01T17:12:40 [INFO]: Removing Windows Biometric Capability Packages.
    2021-08-01T17:12:55 [INFO]: Disabling Optional Feature: Windows-Defender-Default-Definitions
    2021-08-01T17:13:00 [INFO]: Importing Custom App Associations.
    2021-08-01T17:13:03 [INFO]: Removing Windows Capability: Language.Handwriting
    2021-08-01T17:13:08 [INFO]: Removing Windows Capability: Language.OCR
    2021-08-01T17:13:13 [INFO]: Removing Windows Capability: Language.Speech
    2021-08-01T17:13:19 [INFO]: Removing Windows Capability: MathRecognizer
    2021-08-01T17:13:24 [INFO]: Removing Windows Capability: Microsoft.Windows.MSPaint
    2021-08-01T17:13:29 [INFO]: Removing Windows Capability: Microsoft.Windows.Notepad
    2021-08-01T17:13:37 [INFO]: Disabling Optional Feature: MicrosoftWindowsPowerShellV2Root
    2021-08-01T17:13:44 [INFO]: Applying Optimized Registry Settings.
    2021-08-01T17:13:55 [INFO]: Importing Registry Template: Additional Tweaks.reg
    2021-08-01T17:13:59 [INFO]: Importing Registry Template: Legacy Context Menu.reg
    2021-08-01T17:14:04 [INFO]: Applying LayoutModification.
    2021-08-01T17:14:07 [INFO]: Injecting Driver Packages into Windows 10 Pro
    2021-08-01T17:15:45 [INFO]: Performing a Clean-up of the Windows 10 Pro Component Store.
    2021-08-01T17:15:52 [INFO]: Creating a Package Summary Log.
    2021-08-01T17:16:03 [INFO]: Post-Optimization Image Health State: [Healthy]
    2021-08-01T17:16:06 [INFO]: Saving and Dismounting Windows 10 Pro
    2021-08-01T17:18:08 [INFO]: Rebuilding and Exporting Windows 10 Pro using Maximum compression.
    2021-08-01T17:18:44 [INFO]: Optimizing the Installation Media File Structure.
    2021-08-01T17:18:44 [INFO]: Creating a No-Prompt Bootable Windows Installation Media ISO.
    2021-08-01T17:19:10 [INFO]: Finalizing Optimizations.
    2021-08-01T17:19:10 [INFO]: Optimize-Offline completed in [9] minutes with [0] errors.

    ***************************************************************************************************
    Optimizations Finalized : 08/01/2021 05:19:10 PM
    ***************************************************************************************************
     
  12. ashish1989

    ashish1989 MDL Addicted

    Sep 20, 2013
    502
    97
    30
    So is the script needs to be updated now
     
  13. ashish1989

    ashish1989 MDL Addicted

    Sep 20, 2013
    502
    97
    30
    How did you manage to do it
     
  14. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    365
    540
    10
    Follow the generously offered baby-steps given you by @drew84 in post #1034.
    If you somehow get your self all tangled up:rolleyes:, go back 42 posts before drew84's step-by-step and try to untangle yourself by following the diagnosis steps I gave you in post #894. Good luck!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. Mavericks Choice

    Mavericks Choice MDL Guru

    Aug 5, 2015
    3,320
    13,909
    120
    I did have a few minor hiccups with the FeaturesToEnable.json file, though that was commenting errors on my part, after a few tests I corrected them & now all good.
     
  16. ashish1989

    ashish1989 MDL Addicted

    Sep 20, 2013
    502
    97
    30
    WARNING: The required configuration JSON file does not exist: "D:\[O-O]\Configuration.json"
    The file does exists in the required folder,still I am getting the above error
     
  17. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,396
    2,376
    60
    Means Powershell is pointing to somewhere other than the Optimize Offline (ROOT) directory
     
  18. ashish1989

    ashish1989 MDL Addicted

    Sep 20, 2013
    502
    97
    30
    I am out of options now, I always get a new error
    I think this script job is not for a noob like me
     
  19. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,396
    2,376
    60
    perseverance and patience is what is needed

    Ran a test using your source iso - consumer edition .1110
    Code:
    ***************************************************************************************************
    Running Module : Optimize-Offline 4.0.1.8
    Optimize Start : 08/02/2021 01:17:03 PM
    Identity Name  : W0LF
    Computer Name  : DESKTOP-XXXXXXX
    ***************************************************************************************************
    
    2021-08-02T13:17:03 [INFO]: Supported Image Build: [19041] <<--- Base Build <-> Optimized Image Build Professional_19043.iso
    2021-08-02T13:17:06 [INFO]: Mounting Windows 10 Pro
    2021-08-02T13:18:12 [INFO]: Pre-Optimization Image Health State: [Healthy]
    2021-08-02T13:18:19 [INFO]: Removing Provisioned App Package: CortanaApp.View.App
    2021-08-02T13:18:22 [INFO]: Removing Provisioned App Package: Microsoft.GetHelp
    2021-08-02T13:18:25 [INFO]: Removing Provisioned App Package: Microsoft.Getstarted
    2021-08-02T13:18:28 [INFO]: Removing Provisioned App Package: Microsoft.Microsoft3DViewer
    2021-08-02T13:18:32 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftOfficeHub
    2021-08-02T13:18:35 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftSolitaireCollection
    2021-08-02T13:18:38 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftStickyNotes
    2021-08-02T13:18:42 [INFO]: Removing Provisioned App Package: Microsoft.MixedReality.Portal
    2021-08-02T13:18:45 [INFO]: Removing Provisioned App Package: Microsoft.MSPaint
    2021-08-02T13:18:48 [INFO]: Removing Provisioned App Package: Microsoft.Office.OneNote
    2021-08-02T13:18:52 [INFO]: Removing Provisioned App Package: Microsoft.People
    2021-08-02T13:18:55 [INFO]: Removing Provisioned App Package: Microsoft.SkypeApp
    2021-08-02T13:18:59 [INFO]: Removing Provisioned App Package: Microsoft.Windows.Photos
    2021-08-02T13:19:02 [INFO]: Removing Provisioned App Package: Microsoft.WindowsAlarms
    2021-08-02T13:19:05 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCalculator
    2021-08-02T13:19:08 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCamera
    2021-08-02T13:19:12 [INFO]: Removing Provisioned App Package: microsoft.windowscommunicationsapps
    2021-08-02T13:19:16 [INFO]: Removing Provisioned App Package: Microsoft.WindowsMaps
    2021-08-02T13:19:19 [INFO]: Removing Provisioned App Package: Microsoft.WindowsSoundRecorder
    2021-08-02T13:19:23 [INFO]: Removing Provisioned App Package: Microsoft.YourPhone
    2021-08-02T13:19:26 [INFO]: Removing Provisioned App Package: Microsoft.ZuneMusic
    2021-08-02T13:19:29 [INFO]: Removing Provisioned App Package: Microsoft.ZuneVideo
    2021-08-02T13:19:39 [INFO]: Removing System App: Microsoft.AAD.BrokerPlugin
    2021-08-02T13:19:41 [INFO]: Removing System App: Microsoft.BioEnrollment
    2021-08-02T13:19:43 [INFO]: Removing System App: Microsoft.ECApp
    2021-08-02T13:19:45 [INFO]: Removing System App: Microsoft.LockApp
    2021-08-02T13:19:47 [INFO]: Removing System App: Microsoft.Win32WebViewHost
    2021-08-02T13:19:49 [INFO]: Removing System App: Microsoft.Windows.AddSuggestedFoldersToLibarayDialog
    2021-08-02T13:19:51 [INFO]: Removing System App: Microsoft.Windows.FileExplorer
    2021-08-02T13:19:53 [INFO]: Removing System App: Microsoft.Windows.FilePicker
    2021-08-02T13:19:55 [INFO]: Removing System App: Microsoft.Windows.ParentalControls
    2021-08-02T13:19:57 [INFO]: Removing System App: Microsoft.Windows.PeopleExperienceHost
    2021-08-02T13:19:59 [INFO]: Removing System App: Microsoft.Windows.SecHealthUI
    2021-08-02T13:20:01 [INFO]: Removing System App: NcsiUwpApp
    2021-08-02T13:20:05 [INFO]: Disabling Services, Drivers and Integration Content for Removed Apps.
    2021-08-02T13:20:12 [INFO]: Removing Windows Biometric Capability Packages.
    2021-08-02T13:20:32 [INFO]: Disabling Optional Feature: Windows-Defender-Default-Definitions
    2021-08-02T13:20:40 [INFO]: Importing Custom App Associations.
    2021-08-02T13:20:44 [INFO]: Removing Windows Capability: App.StepsRecorder
    2021-08-02T13:20:52 [INFO]: Removing Windows Capability: App.Support.QuickAssist
    2021-08-02T13:21:00 [INFO]: Removing Windows Capability: MathRecognizer
    2021-08-02T13:21:07 [INFO]: Removing Windows Capability: Media.WindowsMediaPlayer
    2021-08-02T13:21:17 [INFO]: Removing Windows Capability: Microsoft.Windows.WordPad
    2021-08-02T13:21:25 [INFO]: Removing Windows Capability: OneCoreUAP.OneSync
    2021-08-02T13:21:33 [INFO]: Removing Windows Capability: OpenSSH.Client
    2021-08-02T13:21:45 [INFO]: Disabling Optional Feature: MicrosoftWindowsPowerShellV2Root
    2021-08-02T13:21:51 [INFO]: Disabling Optional Feature: MSRDC-Infrastructure
    2021-08-02T13:21:54 [INFO]: Disabling Optional Feature: Printing-XPSServices-Features
    2021-08-02T13:21:57 [INFO]: Disabling Optional Feature: SearchEngine-Client-Package
    2021-08-02T13:22:01 [INFO]: Disabling Optional Feature: SmbDirect
    2021-08-02T13:22:04 [INFO]: Disabling Optional Feature: WorkFolders-Client
    2021-08-02T13:22:10 [INFO]: Enabling Optional Feature: DirectPlay
    2021-08-02T13:22:14 [INFO]: Enabling Optional Feature: LegacyComponents
    2021-08-02T13:22:17 [INFO]: Enabling Optional Feature: Microsoft-Windows-Subsystem-Linux
    2021-08-02T13:22:28 [INFO]: Integrating the Microsoft Edge Chromium Application Package.
    2021-08-02T13:22:33 [INFO]: Integrating the Microsoft Edge Administrative Policy Templates.
    2021-08-02T13:22:37 [INFO]: Integrating the Win32 Calculator.
    2021-08-02T13:22:42 [INFO]: Applying Optimized Registry Settings.
    2021-08-02T13:22:58 [INFO]: Applying Setup Content.
    2021-08-02T13:23:02 [INFO]: Importing Registry Template: Additional Tweaks.reg
    2021-08-02T13:23:08 [INFO]: Cleaning-up the Start Menu Layout.
    2021-08-02T13:23:11 [INFO]: Disabling automatic driver update
    2021-08-02T13:23:14 [INFO]: Creating a Package Summary Log.
    2021-08-02T13:23:19 [INFO]: Post-Optimization Image Health State: [Healthy]
    2021-08-02T13:23:22 [INFO]: Saving and Dismounting Windows 10 Pro
    2021-08-02T13:24:58 [INFO]: Rebuilding and Exporting Windows 10 Pro using Maximum compression.
    2021-08-02T13:25:21 [INFO]: Optimizing the Installation Media File Structure.
    2021-08-02T13:25:22 [INFO]: Creating a No-Prompt Bootable Windows Installation Media ISO.
    2021-08-02T13:25:37 [INFO]: Finalizing Optimizations.
    2021-08-02T13:25:37 [INFO]: Optimize-Offline completed in [9] minutes with [1] errors.
    
    ***************************************************************************************************
    Optimizations Finalized : 08/02/2021 01:25:37 PM
    ***************************************************************************************************
    

    ERROR
    ... if I were to hazzard a guess - 1. Different name (Edge Stable) 2. Already Integrated, no need to use parameter "MicrosoftEdge": true,
    @gdeliana may be able to offer a better (more accurate) explanation