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

    ashish1989 MDL Addicted

    Sep 20, 2013
    502
    97
    30
    What to do now in case of this powershell error
     
  2. gdeliana

    gdeliana MDL Senior Member

    Oct 2, 2010
    365
    428
    10
    Well i already did that in my script, mate, really check if things are OK in the poweshell environment, maybe some caching of some sort is keeping the old code.
     
  3. gdeliana

    gdeliana MDL Senior Member

    Oct 2, 2010
    365
    428
    10
    Hello everyone,

    Again made some batch of updates to the script and here are the changes with explanations:

    • Packages blacklist & whitelist, you can as ususal use the populateLists parameter to as well populate ./TemplateLists/Packages.json and cherry pick your packages
    • Dormant OneDrive - makes Onedrive not start at startup and as well not update. Thanks to @spanishfly for the code
    • OSCDIMG method default for ISO creation. The powershell iso creator was not working for me, so i made the OSCDIMG method the default one. Now you can put the OSCDIMG.exe in the root directory of OO tool or you can install WADK tools. But for those lazy like me that don't want the entire WADK installed, is just enough to copy OSCDIMG.exe to the root folder. I will not provide this executable as it is Microsoft property. Google is your friend :)
     
  4. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    874
    30
    Can you explain more clearly.

    I tried editing the packages.json and having "Packages": true, and "Packages": "Whitelist", and get the below.

    Code:
    At D:\Optimize-Offline-master\Optimize-Offline-master\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:\Optimize-Offline-master\Optimize-Offline-master\Start-Optimize.ps1:122 char:18
    + Optimize-Offline @ConfigParams
    +                  ~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (:) [Optimize-Offline], ParameterBindingException
        + FullyQualifiedErrorId : NamedParameterNotFound,Optimize-Offline
    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\\"19044.1151.210724-1310.21H2_RELEASE_SVC_PROD3_CLIENT_X64FRE.iso",
      "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
      }
    }
    
     
  5. gdeliana

    gdeliana MDL Senior Member

    Oct 2, 2010
    365
    428
    10
    Sorry it's fixed now, the usual branch merging typos.
     
  6. gdeliana

    gdeliana MDL Senior Member

    Oct 2, 2010
    365
    428
    10
    I haven't modified anything related to Edge integration. However Edge integration will work only on 19041 images without edge inside. I think this feature is redundant since Microsoft is already since a year ago including the Edge Chromium by default.

    However the above error, means that the script is not able to find the Edge Chromium package in the ./Packages/MicrosoftEdge directory.
     
  7. ashish1989

    ashish1989 MDL Addicted

    Sep 20, 2013
    502
    97
    30
    In github it is still showing v4.0.1.8
     
  8. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,396
    2,376
    60
  9. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,396
    2,376
    60
    Same?.. which one, you've mentioned a number of them here
    If it's the EdgeC issue that I mentioned it has been explained by @gdeliana here, and as suggested previously, change Edge parameter to 'false'
     
  10. zbigniew59

    zbigniew59 MDL Senior Member

    May 14, 2016
    373
    171
    10
    You have to be patient with you - after all - we want to help you.
     
  11. zbigniew59

    zbigniew59 MDL Senior Member

    May 14, 2016
    373
    171
    10
    You tried - MY - I gave you a link.
     
  12. ashish1989

    ashish1989 MDL Addicted

    Sep 20, 2013
    502
    97
    30
    No, I will try it now
     
  13. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,396
    2,376
    60
  14. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    874
    30
    Can you update the ReadMe on GitHub with this info, please?
     
  15. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,396
    2,376
    60