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. spanishfly

    spanishfly MDL Junior Member

    Dec 5, 2018
    62
    71
    0
    #541 spanishfly, Aug 21, 2020
    Last edited: Aug 21, 2020
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Mikra08

    Mikra08 MDL Novice

    Jul 26, 2012
    1
    0
    0
    Just tried an install using the stock settings on the first page, everything works OK until you boot into windows, then the start menu force crashes, forcing you too log out.
     
  3. KedarWolf

    KedarWolf MDL Senior Member

    Mar 17, 2016
    457
    333
    10
    You must of removed something you shouldn't. Here's my log, worked on Windows 19042.

    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\\Win10_19042.450_x64_2020-08-14.iso",
      "WindowsApps": "Select",
      "SystemApps": true,
      "Capabilities": true,
      "Packages": true,
      "Features": true,
      "DeveloperMode": true,
      "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
      },
      "ISO": "No-Prompt"
    }
    
    Code:
    
    ***************************************************************************************************
    Running Module : Optimize-Offline 4.0.1.4
    Optimize Start : 08/24/2020 10:20:51 AM
    Identity Name  : Kedar
    Computer Name  : KEDARWOLF
    ***************************************************************************************************
    
    2020-08-24T10:20:51 [INFO]: Supported Image Build: [19041]
    2020-08-24T10:20:54 [INFO]: Mounting Windows 10 Enterprise
    2020-08-24T10:21:59 [INFO]: Mounting Microsoft Windows Setup (x64)
    2020-08-24T10:22:23 [INFO]: Mounting Microsoft Windows Recovery Environment (x64)
    2020-08-24T10:22:51 [INFO]: Pre-Optimization Image Health State: [Healthy]
    2020-08-24T10:23:39 [INFO]: Removing Provisioned App Package: Microsoft.BingWeather
    2020-08-24T10:23:42 [INFO]: Removing Provisioned App Package: Microsoft.GetHelp
    2020-08-24T10:23:45 [INFO]: Removing Provisioned App Package: Microsoft.Getstarted
    2020-08-24T10:23:48 [INFO]: Removing Provisioned App Package: Microsoft.Microsoft3DViewer
    2020-08-24T10:23:51 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftOfficeHub
    2020-08-24T10:23:54 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftSolitaireCollection
    2020-08-24T10:23:57 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftStickyNotes
    2020-08-24T10:24:02 [INFO]: Removing Provisioned App Package: Microsoft.MixedReality.Portal
    2020-08-24T10:24:06 [INFO]: Removing Provisioned App Package: Microsoft.MSPaint
    2020-08-24T10:24:10 [INFO]: Removing Provisioned App Package: Microsoft.Office.OneNote
    2020-08-24T10:24:14 [INFO]: Removing Provisioned App Package: Microsoft.People
    2020-08-24T10:24:19 [INFO]: Removing Provisioned App Package: Microsoft.ScreenSketch
    2020-08-24T10:24:23 [INFO]: Removing Provisioned App Package: Microsoft.SkypeApp
    2020-08-24T10:24:27 [INFO]: Removing Provisioned App Package: Microsoft.Wallet
    2020-08-24T10:24:31 [INFO]: Removing Provisioned App Package: Microsoft.Windows.Photos
    2020-08-24T10:24:35 [INFO]: Removing Provisioned App Package: Microsoft.WindowsAlarms
    2020-08-24T10:24:40 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCalculator
    2020-08-24T10:24:44 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCamera
    2020-08-24T10:24:48 [INFO]: Removing Provisioned App Package: microsoft.windowscommunicationsapps
    2020-08-24T10:24:52 [INFO]: Removing Provisioned App Package: Microsoft.WindowsFeedbackHub
    2020-08-24T10:24:57 [INFO]: Removing Provisioned App Package: Microsoft.WindowsMaps
    2020-08-24T10:25:01 [INFO]: Removing Provisioned App Package: Microsoft.WindowsSoundRecorder
    2020-08-24T10:25:05 [INFO]: Removing Provisioned App Package: Microsoft.YourPhone
    2020-08-24T10:25:09 [INFO]: Removing Provisioned App Package: Microsoft.ZuneMusic
    2020-08-24T10:25:14 [INFO]: Removing Provisioned App Package: Microsoft.ZuneVideo
    2020-08-24T10:25:58 [INFO]: Removing System App: Microsoft.AAD.BrokerPlugin
    2020-08-24T10:26:00 [INFO]: Removing System App: Microsoft.BioEnrollment
    2020-08-24T10:26:02 [INFO]: Removing System App: Microsoft.ECApp
    2020-08-24T10:26:04 [INFO]: Removing System App: Microsoft.LockApp
    2020-08-24T10:26:06 [INFO]: Removing System App: Microsoft.MicrosoftEdge
    2020-08-24T10:26:08 [INFO]: Removing System App: Microsoft.MicrosoftEdgeDevToolsClient
    2020-08-24T10:26:10 [INFO]: Removing System App: Microsoft.Win32WebViewHost
    2020-08-24T10:26:12 [INFO]: Removing System App: Microsoft.Windows.AddSuggestedFoldersToLibarayDialog
    2020-08-24T10:26:14 [INFO]: Removing System App: Microsoft.Windows.CallingShellApp
    2020-08-24T10:26:16 [INFO]: Removing System App: Microsoft.Windows.ContentDeliveryManager
    2020-08-24T10:26:18 [INFO]: Removing System App: Microsoft.Windows.FileExplorer
    2020-08-24T10:26:20 [INFO]: Removing System App: Microsoft.Windows.FilePicker
    2020-08-24T10:26:23 [INFO]: Removing System App: Microsoft.Windows.ParentalControls
    2020-08-24T10:26:25 [INFO]: Removing System App: Microsoft.Windows.PeopleExperienceHost
    2020-08-24T10:26:27 [INFO]: Removing System App: Microsoft.Windows.SecHealthUI
    2020-08-24T10:26:29 [INFO]: Removing System App: Microsoft.Windows.SecureAssessmentBrowser
    2020-08-24T10:26:31 [INFO]: Removing System App: Microsoft.Windows.XGpuEjectDialog
    2020-08-24T10:26:33 [INFO]: Removing System App: Windows.CBSPreview
    2020-08-24T10:26:36 [INFO]: Disabling Services, Drivers and Integration Content for Removed Apps.
    2020-08-24T10:26:42 [INFO]: Disabling Optional Feature: Windows-Defender-Default-Definitions
    2020-08-24T10:26:46 [INFO]: Importing Custom App Associations.
    2020-08-24T10:27:07 [INFO]: Removing Windows Capability: App.Support.QuickAssist
    2020-08-24T10:27:12 [INFO]: Removing Windows Capability: Hello.Face.18967
    2020-08-24T10:27:17 [INFO]: Removing Windows Capability: Hello.Face.Migration.18967
    2020-08-24T10:27:22 [INFO]: Removing Windows Capability: MathRecognizer
    2020-08-24T10:27:27 [INFO]: Removing Windows Capability: Microsoft.Windows.Notepad
    2020-08-24T10:27:31 [INFO]: Removing Windows Capability: Microsoft.Windows.WordPad
    2020-08-24T10:27:36 [INFO]: Removing Windows Capability: OneCoreUAP.OneSync
    2020-08-24T10:27:41 [INFO]: Removing Windows Capability: OpenSSH.Client
    2020-08-24T10:27:58 [INFO]: Removing Windows Package: Microsoft-Windows-LanguageFeatures-OCR-en-gb
    2020-08-24T10:28:02 [INFO]: Removing Windows Package: Microsoft-Windows-LanguageFeatures-Speech-en-gb
    2020-08-24T10:28:08 [INFO]: Removing Windows Package: Microsoft-Windows-LanguageFeatures-Handwriting-en-gb
    2020-08-24T10:28:19 [INFO]: Disabling Optional Feature: MicrosoftWindowsPowerShellV2Root
    2020-08-24T10:28:37 [INFO]: Disabling Optional Feature: Printing-XPSServices-Features
    2020-08-24T10:28:41 [INFO]: Disabling Optional Feature: SmbDirect
    2020-08-24T10:28:45 [INFO]: Disabling Optional Feature: WorkFolders-Client
    2020-08-24T10:29:01 [INFO]: Enabling Optional Feature: Microsoft-Windows-Subsystem-Linux
    2020-08-24T10:29:12 [INFO]: Integrating the Developer Mode Feature Package.
    2020-08-24T10:29:23 [INFO]: Integrating the Win32 Calculator.
    2020-08-24T10:29:26 [INFO]: Applying Optimized Registry Settings.
    2020-08-24T10:29:39 [INFO]: Applying Setup Content.
    2020-08-24T10:29:42 [INFO]: Importing Registry Template: Additional Tweaks.reg
    2020-08-24T10:29:48 [INFO]: Applying Answer File.
    2020-08-24T10:29:53 [INFO]: Injecting Driver Packages into Windows 10 Enterprise
    2020-08-24T10:30:21 [INFO]: Injecting Driver Packages into Microsoft Windows Setup (x64)
    2020-08-24T10:30:52 [INFO]: Injecting Driver Packages into Microsoft Windows Recovery Environment (x64)
    2020-08-24T10:31:23 [INFO]: Cleaning-up the Start Menu Layout.
    2020-08-24T10:31:26 [INFO]: Creating a Package Summary Log.
    2020-08-24T10:31:45 [INFO]: Post-Optimization Image Health State: [Healthy]
    2020-08-24T10:31:48 [INFO]: Saving and Dismounting Microsoft Windows Setup (x64)
    2020-08-24T10:32:23 [INFO]: Rebuilding and Exporting Microsoft Windows Setup (x64)
    2020-08-24T10:32:31 [INFO]: Saving and Dismounting Microsoft Windows Recovery Environment (x64)
    2020-08-24T10:33:06 [INFO]: Rebuilding and Exporting Microsoft Windows Recovery Environment (x64)
    2020-08-24T10:33:12 [INFO]: Saving and Dismounting Windows 10 Enterprise
    2020-08-24T10:34:56 [INFO]: Rebuilding and Exporting Windows 10 Enterprise using Solid compression.
    2020-08-24T10:43:29 [INFO]: Optimizing the Installation Media File Structure.
    2020-08-24T10:43:29 [INFO]: Creating a No-Prompt Bootable Windows Installation Media ISO.
    2020-08-24T10:43:42 [INFO]: Finalizing Optimizations.
    2020-08-24T10:43:42 [INFO]: Optimize-Offline completed in [23] minutes with [0] errors.
    
    ***************************************************************************************************
    Optimizations Finalized : 08/24/2020 10:43:42 AM
    ***************************************************************************************************
    
     
  4. Pir8pete

    Pir8pete MDL Member

    Nov 15, 2018
    112
    32
    10
  5. KedarWolf

    KedarWolf MDL Senior Member

    Mar 17, 2016
    457
    333
    10
    If you don't want DART, put it like this.

    "DaRT": [
    ],

    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\\Win10_19042.450_x64_2020-08-14.iso",
      "WindowsApps": "Select",
      "SystemApps": true,
      "Capabilities": true,
      "Packages": true,
      "Features": true,
      "DeveloperMode": true,
      "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
      },
      "ISO": "No-Prompt"
    }
    
     
  6. drew84

    drew84 MDL Addicted

    Mar 13, 2014
    697
    1,149
    30
    #547 drew84, Aug 27, 2020
    Last edited: Aug 27, 2020
    Optimize-Offline on 20201_en-GB
    Code:
    ***************************************************************************************************
    Running Module : Optimize-Offline 4.0.1.4
    Optimize Start : 08/27/2020 02:40:51 PM
    Identity Name  : DREW
    Computer Name  : DREW-DAILYDRIVERPC
    ***************************************************************************************************
    
    Copying WIM from "D:\Optimize-Offline-4.0.1.4.en-GB.20201"
    2020-08-27T14:40:51 [INFO]: Supported Image Build: [20201]
    2020-08-27T14:40:54 [INFO]: Mounting Windows 10 Enterprise
    2020-08-27T14:41:40 [INFO]: Pre-Optimization Image Health State: [Healthy]
    2020-08-27T14:42:29 [INFO]: Removing Provisioned App Package: CortanaApp.View.App
    2020-08-27T14:42:33 [INFO]: Removing Provisioned App Package: Microsoft.BingNews
    2020-08-27T14:42:37 [INFO]: Removing Provisioned App Package: Microsoft.BingWeather
    2020-08-27T14:42:41 [INFO]: Removing Provisioned App Package: Microsoft.GetHelp
    2020-08-27T14:42:45 [INFO]: Removing Provisioned App Package: Microsoft.Getstarted
    2020-08-27T14:42:49 [INFO]: Removing Provisioned App Package: Microsoft.Microsoft3DViewer
    2020-08-27T14:42:52 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftOfficeHub
    2020-08-27T14:42:56 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftSolitaireCollection
    2020-08-27T14:43:00 [INFO]: Removing Provisioned App Package: Microsoft.MicrosoftStickyNotes
    2020-08-27T14:43:04 [INFO]: Removing Provisioned App Package: Microsoft.MixedReality.Portal
    2020-08-27T14:43:08 [INFO]: Removing Provisioned App Package: Microsoft.MSPaint
    2020-08-27T14:43:12 [INFO]: Removing Provisioned App Package: Microsoft.Office.OneNote
    2020-08-27T14:43:15 [INFO]: Removing Provisioned App Package: Microsoft.People
    2020-08-27T14:43:19 [INFO]: Removing Provisioned App Package: Microsoft.ScreenSketch
    2020-08-27T14:43:23 [INFO]: Removing Provisioned App Package: Microsoft.SkypeApp
    2020-08-27T14:43:27 [INFO]: Removing Provisioned App Package: Microsoft.Todos
    2020-08-27T14:43:31 [INFO]: Removing Provisioned App Package: Microsoft.Wallet
    2020-08-27T14:43:35 [INFO]: Removing Provisioned App Package: Microsoft.Windows.Photos
    2020-08-27T14:43:39 [INFO]: Removing Provisioned App Package: Microsoft.WindowsAlarms
    2020-08-27T14:43:43 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCalculator
    2020-08-27T14:43:47 [INFO]: Removing Provisioned App Package: Microsoft.WindowsCamera
    2020-08-27T14:43:51 [INFO]: Removing Provisioned App Package: microsoft.windowscommunicationsapps
    2020-08-27T14:43:55 [INFO]: Removing Provisioned App Package: Microsoft.WindowsFeedbackHub
    2020-08-27T14:43:59 [INFO]: Removing Provisioned App Package: Microsoft.WindowsMaps
    2020-08-27T14:44:03 [INFO]: Removing Provisioned App Package: Microsoft.WindowsSoundRecorder
    2020-08-27T14:44:07 [INFO]: Removing Provisioned App Package: Microsoft.XboxGameOverlay
    2020-08-27T14:44:11 [INFO]: Removing Provisioned App Package: Microsoft.XboxGamingOverlay
    2020-08-27T14:44:14 [INFO]: Removing Provisioned App Package: Microsoft.XboxSpeechToTextOverlay
    2020-08-27T14:44:18 [INFO]: Removing Provisioned App Package: Microsoft.YourPhone
    2020-08-27T14:44:22 [INFO]: Removing Provisioned App Package: Microsoft.ZuneMusic
    2020-08-27T14:44:26 [INFO]: Removing Provisioned App Package: Microsoft.ZuneVideo
    2020-08-27T14:45:22 [INFO]: Removing System App: Microsoft.AAD.BrokerPlugin
    2020-08-27T14:45:25 [INFO]: Removing System App: Microsoft.AccountsControl
    2020-08-27T14:45:27 [INFO]: Removing System App: Microsoft.AsyncTextService
    2020-08-27T14:45:29 [INFO]: Removing System App: Microsoft.BioEnrollment
    2020-08-27T14:45:31 [INFO]: Removing System App: Microsoft.ECApp
    2020-08-27T14:45:33 [INFO]: Removing System App: Microsoft.LockApp
    2020-08-27T14:45:35 [INFO]: Removing System App: Microsoft.MicrosoftEdge
    2020-08-27T14:45:37 [INFO]: Removing System App: Microsoft.MicrosoftEdgeDevToolsClient
    2020-08-27T14:45:39 [INFO]: Removing System App: Microsoft.Win32WebViewHost
    2020-08-27T14:45:41 [INFO]: Removing System App: Microsoft.Windows.AddSuggestedFoldersToLibarayDialog
    2020-08-27T14:45:43 [INFO]: Removing System App: Microsoft.Windows.AssignedAccessLockApp
    2020-08-27T14:45:45 [INFO]: Removing System App: Microsoft.Windows.CapturePicker
    2020-08-27T14:45:47 [INFO]: Removing System App: Microsoft.Windows.CloudExperienceHost
    2020-08-27T14:45:49 [INFO]: Removing System App: Microsoft.Windows.FileExplorer
    2020-08-27T14:45:51 [INFO]: Removing System App: Microsoft.Windows.FilePicker
    2020-08-27T14:45:53 [INFO]: Removing System App: Microsoft.Windows.NarratorQuickStart
    2020-08-27T14:45:55 [INFO]: Removing System App: Microsoft.Windows.OOBENetworkCaptivePortal
    2020-08-27T14:45:57 [INFO]: Removing System App: Microsoft.Windows.OOBENetworkConnectionFlow
    2020-08-27T14:45:59 [INFO]: Removing System App: Microsoft.Windows.ParentalControls
    2020-08-27T14:46:01 [INFO]: Removing System App: Microsoft.Windows.PeopleExperienceHost
    2020-08-27T14:46:03 [INFO]: Removing System App: Microsoft.Windows.PinningConfirmationDialog
    2020-08-27T14:46:05 [INFO]: Removing System App: Microsoft.Windows.SecureAssessmentBrowser
    2020-08-27T14:46:07 [INFO]: Removing System App: Microsoft.Windows.XGpuEjectDialog
    2020-08-27T14:46:09 [INFO]: Removing System App: Microsoft.XboxGameCallableUI
    2020-08-27T14:46:11 [INFO]: Removing System App: MicrosoftWindows.Client.CBS
    2020-08-27T14:46:13 [INFO]: Removing System App: MicrosoftWindows.UndockedDevKit
    2020-08-27T14:46:15 [INFO]: Removing System App: NcsiUwpApp
    2020-08-27T14:46:17 [INFO]: Removing System App: Windows.CBSPreview
    2020-08-27T14:46:19 [INFO]: Removing System App: Windows.PrintDialog
    2020-08-27T14:46:23 [INFO]: Disabling Services, Drivers and Integration Content for Removed Apps.
    2020-08-27T14:46:27 [INFO]: Importing Custom App Associations.
    2020-08-27T14:46:58 [INFO]: Removing Windows Capability: App.StepsRecorder
    2020-08-27T14:47:09 [INFO]: Removing Windows Capability: App.Support.QuickAssist
    2020-08-27T14:47:18 [INFO]: Removing Windows Capability: Hello.Face.20134
    2020-08-27T14:47:27 [INFO]: Removing Windows Capability: Hello.Face.Migration.20134
    2020-08-27T14:47:36 [INFO]: Removing Windows Capability: Language.Handwriting
    2020-08-27T14:47:45 [INFO]: Removing Windows Capability: Language.OCR
    2020-08-27T14:47:53 [INFO]: Removing Windows Capability: Language.Speech
    2020-08-27T14:48:03 [INFO]: Removing Windows Capability: MathRecognizer
    2020-08-27T14:48:11 [INFO]: Removing Windows Capability: Microsoft.Windows.MSPaint
    2020-08-27T14:48:20 [INFO]: Removing Windows Capability: OneCoreUAP.OneSync
    2020-08-27T14:48:30 [INFO]: Removing Windows Capability: Print.Fax.Scan
    2020-08-27T14:48:40 [INFO]: Removing Windows Capability: Print.Management.Console
    2020-08-27T14:48:54 [INFO]: Disabling Optional Feature: MicrosoftWindowsPowerShellV2Root
    2020-08-27T14:49:22 [INFO]: Disabling Optional Feature: Printing-Foundation-Features
    2020-08-27T14:49:26 [INFO]: Disabling Optional Feature: Printing-Foundation-InternetPrinting-Client
    2020-08-27T14:49:30 [INFO]: Disabling Optional Feature: Printing-PrintToPDFServices-Features
    2020-08-27T14:49:34 [INFO]: Disabling Optional Feature: Printing-XPSServices-Features
    2020-08-27T14:49:38 [INFO]: Disabling Optional Feature: WorkFolders-Client
    2020-08-27T14:50:03 [INFO]: Enabling Optional Feature: DirectPlay
    2020-08-27T14:50:09 [INFO]: Enabling Optional Feature: Microsoft-Windows-Subsystem-Linux
    2020-08-27T14:50:15 [INFO]: Enabling Optional Feature: LegacyComponents
    2020-08-27T14:50:20 [INFO]: Applying Optimized Registry Settings.
    2020-08-27T14:50:41 [INFO]: Importing Registry Template: Additional Tweaks.reg
    2020-08-27T14:50:47 [INFO]: Cleaning-up the Start Menu Layout.
    2020-08-27T14:50:54 [INFO]: Post-Optimization Image Health State: [Healthy]
    2020-08-27T14:50:57 [INFO]: Saving and Dismounting Windows 10 Enterprise
    2020-08-27T14:52:28 [INFO]: Rebuilding and Exporting Windows 10 Enterprise using Fast compression.
    2020-08-27T14:54:12 [INFO]: Finalizing Optimizations.
    2020-08-27T14:54:12 [INFO]: Optimize-Offline completed in [13] minutes with [0] errors.
    
    ***************************************************************************************************
    Optimizations Finalized : 08/27/2020 02:54:12 PM
    ***************************************************************************************************
    

    ... upgraded from 19042.487, installation took 28 minutes... all seems ok
     
  7. plasmah77

    plasmah77 MDL Novice

    Apr 3, 2016
    23
    9
    0
    Yea that would be nice! PLEASE DO ;)
     
  8. zbigniew59

    zbigniew59 MDL Member

    May 14, 2016
    101
    15
    10
    After all, the description in the first post is very detailed. I don't know English either, but google translate works fine for me.
    And according to that I do iso in my language and it works fine too.
     
  9. Mavericks Choice

    Mavericks Choice MDL Expert

    Aug 5, 2015
    1,543
    5,599
    60
    I find the guide on page 1 very easy to follow.
     
  10. zbigniew59

    zbigniew59 MDL Member

    May 14, 2016
    101
    15
    10
    There is some bug in - Content / Additional / Setup / Set-Additional
    After starting - Set-Additional.cmd - and rebooting, you cannot set the avatar in - settings / account / avatar.
    Also, you cannot set your wallpaper in - settings / personalization / login screen / photos - you cannot set your own wallpaper.
    How to fix it?
     
  11. justintime20

    justintime20 MDL Novice

    Feb 5, 2018
    11
    0
    0
    I keep getting these four errors towards the end, where it fails to save and dismount Windows 10. Using Windows version 19041.388 ESD. Anyone know how to fix?
    Code:
    Index     : 0
    Exception : The process cannot access the file because it is being used by another process.
    Category  : WriteError: (C:\Offline Opti...ine\install.wim:FileInfo) [Move-Item], IOException
    ErrorID   : MoveFileInfoItemIOError,Microsoft.PowerShell.Commands.MoveItemCommand
    Target    : C:\Offline Optimize\OfflineTemp_1947320315\ImageOffline\install.wim
    Command   : Else { Get-ChildItem -Path $ImageFolder -Include $ImageFiles -Recurse | Move-Item -Destination
                $SaveDirectory.FullName }
    Script    : C:\Offline Optimize\Optimize-Offline.psm1
    Line      : 1897
    Column    : 77
    
    Index     : 1
    Exception : ScriptHalted
    Category  : OperationStopped: (:) [], RuntimeException
    ErrorID   : ScriptHalted
    Target    :
    Command   : Throw
    Script    : C:\Offline Optimize\Optimize-Offline.psm1
    Line      : 1810
    Column    : 7
    
    Index     : 2
    Exception : The data is invalid.
                
    Category  : NotSpecified: (:) [Dismount-WindowsImage], COMException
    ErrorID   : Microsoft.Dism.Commands.DismountWindowsImageCommand
    Target    :
    Command   : If ($PSItem.ImagePath -match 'boot.wim' -or $PSItem.ImagePath -match 'winre.wim' -or $PSItem.ImagePath
                -match 'install.wim') { [Void](Dismount-WindowsImage -Path $PSItem.MountPath -Discard) }
    Script    : C:\Offline Optimize\Src\Public\Dismount-Images.ps1
    Line      : 17
    Column    : 147
    
    Index     : 3
    Exception : The data is invalid.
                
    Category  : NotSpecified: (:) [Dismount-WindowsImage], COMException
    ErrorID   : Microsoft.Dism.Commands.DismountWindowsImageCommand
    Target    :
    Command   : [Void](Dismount-WindowsImage @DismountInstallParams)
    Script    : C:\Offline Optimize\Optimize-Offline.psm1
    Line      : 1771
    Column    : 11
    
     
  12. spanishfly

    spanishfly MDL Junior Member

    Dec 5, 2018
    62
    71
    0
    This might not help, but you could try using a folder name without any spaces.
    like C:\OfflineOptimize\ or C:\OO\
    Make sure your source image is also in a folder named without spaces on the top-level of a drive.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. justintime20

    justintime20 MDL Novice

    Feb 5, 2018
    11
    0
    0
    I removed the spaces from the folder names and moved ESD file to top level of drive, still no success. I can get my copy of Windows 10 1709 to work perfectly, just can't get 2004 to work.
    Still same four errors plus a new one. Might try using different computer.
    Code:
    Index     : 4
    Exception : You cannot call a method on a null-valued expression.
    Category  : InvalidOperation: (:) [], RuntimeException
    ErrorID   : InvokeMethodOnNull
    Target    :
    Command   : If ($DaRT.Contains('Recovery') -or ($Additional.Drivers -and (Get-ChildItem -Path
                $OptimizeOffline.RecoveryDrivers -Include *.inf -Recurse -Force)))
    Script    : C:\OfflineOptimize\Optimize-Offline.psm1
    Line      : 311
    Column    : 7
     
  14. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    30,822
    48,243
    450
    If you mean an install.esd, they can't be serviced, convert to install.wim first.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. drew84

    drew84 MDL Addicted

    Mar 13, 2014
    697
    1,149
    30
    @justintime20
    1 Looks like you may have an issue with Configuration.json file, perhaps you could up it here for checking
    2 Also, have you made any alterations to any other files or directories, and if so, what were the changes applied

    Members may then be in a better position to assist you.
     
  16. justintime20

    justintime20 MDL Novice

    Feb 5, 2018
    11
    0
    0
    No, its not an install.esd file. Converting to install.wim based iso gives me "invalid setup media" error (I forgot what it actually says).
    My configuration file is the same as posted on OP's guide on page 1. I did not make any changes to the files or directories within offline-optimizer.

    I have good news however, I used offline-optimizer on a different PC and had success. I guess some tweaks, pc settings I changed, or hardware/configuration caused me to get those errors. Strange.
     
  17. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    30,822
    48,243
    450
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. justintime20

    justintime20 MDL Novice

    Feb 5, 2018
    11
    0
    0
  19. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    30,822
    48,243
    450
    Did you convert to ISO with install.esd or with install.wim?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...