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

    zbigniew59 MDL Senior Member

    May 14, 2016
    374
    171
    10
    I use this script on iso pl-PL and it seems I don't have any bugs.
    Could there be any bugs I don't know about? . Logs show without errors.
     
  2. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    Could you show your 'Configuration.json' here for the settings you used?

    It might depend if it works what you chose there.
     
  3. stan456

    stan456 MDL Novice

    Jul 29, 2015
    18
    0
    0
    Is there a list somewhere that tells us what each item does? Like when removing SystemApps. Is there a description of what each item is used for?
     
  4. zbigniew59

    zbigniew59 MDL Senior Member

    May 14, 2016
    374
    171
    10
    #504 zbigniew59, Jul 23, 2020
    Last edited: Jul 23, 2020
    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:\\1\\19041.388.200709-0342.VB_RELEASE_SVC_PROD1_CLIENTMULTI_X64FRE_PL-PL.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": false,
       "NetFx3": true
      },
      "ISO": "No-Prompt"
    }
    My Configuration.json file
     
  5. zbigniew59

    zbigniew59 MDL Senior Member

    May 14, 2016
    374
    171
    10
    When finished, it shows no errors.
     
  6. rentay

    rentay MDL Junior Member

    Dec 30, 2013
    88
    17
    0
    Used the updated Optimize-Offline (use to use version 3.x) and everything went well.

    The output file is install.wim. I have checked through this thread and cannot see how to create a bootable usb?

    The older versions use to output a .iso and I used Godhand’s winboot usb script
     
  7. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
  8. rentay

    rentay MDL Junior Member

    Dec 30, 2013
    88
    17
    0
    #510 rentay, Jul 27, 2020
    Last edited: Jul 27, 2020
  9. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    Here is the full config file with all the parameters done correctly, change them as you need. But yes, for no Dart it needs to be done like this or you get the unsupported message.

    "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": "C:\\1\\Win10_19042.331_x64_2020-07-02.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": true,
       "Drivers": true,
       "NetFx3": true
      },
      "ISO": "No-Prompt"
    }
    
     
  10. rentay

    rentay MDL Junior Member

    Dec 30, 2013
    88
    17
    0
    I totally skipped over to include DaRT. Definitely user error :)

    All working now, thanks
     
  11. justintime20

    justintime20 MDL Novice

    Feb 5, 2018
    11
    0
    0
    Any way I could use this with windows 10 v1709?
     
  12. Mavericks Choice

    Mavericks Choice MDL Guru

    Aug 5, 2015
    2,916
    12,503
    90

    Been posted very early in this thread, just change the the win 10 build to the relevant number as below.
    Just add this single line ...
    $InstallInfo.Build = 18362

    Just before ....
    If ($InstallInfo.Build -ge '17134' -and $InstallInfo.Build -le '18362')
     
  13. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    I tested this on the 1709 ISO. This post is what you need to do.

    https://forums.mydigitallife.net/th...20h1-and-ltsc-2019.80038/page-26#post-1611792
     
  14. TheCollDude489

    TheCollDude489 MDL Member

    Apr 16, 2018
    147
    32
    10
    Are the Remove-OneDrive.ps1 and Set-Additional.ps1 scrips ran during the setup? Or do you have to manually run them after setup is complete?
     
  15. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    You need to run them separately after installing the O/S.
     
  16. TheCollDude489

    TheCollDude489 MDL Member

    Apr 16, 2018
    147
    32
    10
    Oh, OK. Also is it normal that the ISO the script creates in the end only works with UEFI?