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

    drew84 MDL Expert

    Mar 13, 2014
    1,354
    2,308
    60
  2. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,354
    2,308
    60
    @KiDFuZioN
    The Configuration.json (Example) file included with the scripts has all values filled in.
    The Configuration.json file generated by the script (Found in the Optimize Logs.zip) does not,
    Most certainly not in my case... as to its validity, will take what you said on board..
    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:\\19037.1000\\sources\\install.wim",
      "WindowsApps": "Whitelist",
      "SystemApps": true,
      "Capabilities": true,
      "Packages": ,
      "Features": true,
      "DeveloperMode": ,
      "WindowsStore": ,
      "MicrosoftEdge": ,
      "Win32Calc": ,
      "Dedup": ,
      "Registry": true,
      "Additional": true
    }
    
    RE: Culture Workaround (en-US to en-GB)
    Script fails when using Powershell 6 - Failed to import the localized data file (Optimize-Offline.psd1) however, works with all other powershell iterations
    .. have just noticed filename differs in the psm1 script Import-LocalizedData -BindingVariable OptimizedData -FileName Optimize-Offline.strings.psd1
     
  3. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,354
    2,308
    60
    #105 drew84, Dec 8, 2019
    Last edited: Dec 8, 2019
    @KiDFuZioN

    Initial [Root]
    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:\\19037.1000\\sources\\install.wim",
      "WindowsApps": "Whitelist",
      "SystemApps": true,
      "Capabilities": true,
      "Packages": false,
      "Features": true,
      "DeveloperMode": false,
      "WindowsStore":false,
      "MicrosoftEdge": false,
      "Win32Calc": false,
      "Registry": true,
      "Additional": true
    }
    
    Generated [Optimize Log]
    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 . String parameter values must be enclosed in double-quotes."
      ],
      "SourcePath": "D:\\19037.1000\\sources\\install.wim",
      "WindowsApps": "Whitelist",
      "SystemApps": true,
      "Capabilities": true,
      "Packages": ,
      "Features": true,
      "DeveloperMode": ,
      "WindowsStore": ,
      "MicrosoftEdge": ,
      "Win32Calc": ,
      "Registry": true,
      "Additional": true
    }
     
  4. fLOW.

    fLOW. MDL Senior Member

    Jul 28, 2009
    475
    571
    10
  5. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,354
    2,308
    60
    Which problem
    the Invalid JSON primitive: .
    The missing false references, or
    that it doesn't run under Powershell 6

    will run a test using en-US culture and an en-US image as author intended, but,
    needless to say to say, I need this to run on an en-GB image, hence all the tinkering.
    there is also a request on git hub for the script to be made available for other cultures, another reason why I persist.
     
  6. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    I changed en-US to en-GB in the PowerShell script for Windows 1909 and everything worked fine. Oh, and the folder name as well.
     
  7. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,354
    2,308
    60
  8. quakze

    quakze MDL Junior Member

    Dec 15, 2011
    74
    16
    0
    @GodHand Thanks for this wounderfull script.

    @drew84 Thanks for showing how to use this sricpt.

    @KedarWolf Thanks for posting and
    maintaining the thread.

    I made the best debloated Windows 10 which is almost perfect with no errors using this script, faster and better than any other software.
     
  9. MonarchX

    MonarchX MDL Expert

    May 5, 2007
    1,732
    313
    60
    NTLite is another way :D, but every time I talk about it, I feel like I am a part of an advertisement...
     
  10. bay12

    bay12 MDL Junior Member

    Nov 30, 2014
    84
    13
    0
    Hi guys, do you know if there's any way of deleting the system apps files that are left out in the windows\systemapps folder without having sfc /verifyonly triggering integrity check errors?

    I've removed the inbox apps registry keys in my offline wim file (following an old post here), but all those folders are left there.

    I think there is a method to remove all those crappy folders because i can get rid of them withouth any sfc error if i use NTLite, but i'd prefer to use a different method.

    thanks all in advance.
     
  11. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,354
    2,308
    60
  12. quakze

    quakze MDL Junior Member

    Dec 15, 2011
    74
    16
    0
    @GodHand @drew84

    I like to try this script on 19035 20H1 OS.

    May I try or need an update to work with 20H1 OS
     
  13. CHEF-KOCH

    CHEF-KOCH MDL Expert

    Jan 7, 2008
    1,192
    1,185
    60
    2004 final isn't even out yet. @quakze
     
  14. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,354
    2,308
    60
    #118 drew84, Dec 12, 2019
    Last edited: Dec 12, 2019
    Script is officially recommended only up to 1909 (19H2)
    But you can use at your own risk (as I have done) up to current 19041
    ... just needs some minor modifications to psm1 script, as addressed previously. Good Luck...

    @Kedar Wolf another addition for you
    (Optimize-OfflineRoot Directory\Src\Public\) Changed the en-US folder to en-GB, <<<--- EDIT 2
     
  15. quakze

    quakze MDL Junior Member

    Dec 15, 2011
    74
    16
    0
    How to get 20H1 19041 iso or esd
     
  16. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,354
    2,308
    60