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
    373
    171
    10
    Everything changed to D: drive - it doesn't work the same.
     
  2. quakze

    quakze MDL Junior Member

    Dec 15, 2011
    74
    16
    0
    what error you see after running ".\Start-Optimize.ps1" cmd in POWERSHELL.
     
  3. zbigniew59

    zbigniew59 MDL Senior Member

    May 14, 2016
    373
    171
    10
    The powershell window opens and closes immediately.
     
  4. Pir8pete

    Pir8pete MDL Member

    Nov 15, 2018
    114
    32
    10
    so your saying this untouched MSDN image is why it's not working? if thats the case then the author needs to address this, I'll try my other untouched image then and see if it does the same Win10_1809_(17763.316)_Ent_LTSC

    UPDATE:

    nope same thing power shell just closes
    "SourcePath": "D:\\_Temp\\Win10_1809_(17763.316)_Ent_LTSC.iso",
     
  5. Heimnetz

    Heimnetz MDL Novice

    Jun 5, 2014
    14
    3
    0
    @zbigniew59
    Open Powershell ISE as Admin.
    File-->Open-->Start-Optimize.ps1.
    Click green button "Run script".
    Post error.
     
  6. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    874
    30
    If you choose the Whitelist option and your AppxWhitelist.json looks like below, Windows Store works with all the apps removed in OP except the Whitelist apps.

    I tested it with World Of Warships in the Microsoft Store.

    Code:
    {
      "DisplayName": [
        "Microsoft.DesktopAppInstaller",
        "Microsoft.StorePurchaseApp",
        "Microsoft.VP9VideoExtensions",
        "Microsoft.WindowsStore",
        "Microsoft.XboxIdentityProvider"
      ]
    }
    
     
  7. Pir8pete

    Pir8pete MDL Member

    Nov 15, 2018
    114
    32
    10
    #188 Pir8pete, Jan 11, 2020
    Last edited: Jan 11, 2020

    Why couldn't someone have mentioned this in the first place!!!

    Code:
    File D:\_Temp\Optimize-Offline-4.0.0.3\Start-Optimize.ps1 cannot be loaded because the ex
    ecution of scripts is disabled on this system. Please see "get-help about_signing" for mo
    re details.
    At line:0 char:0
    
    NOW how do i fix this error?
     
  8. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    874
    30
    Code:
    Set-ExecutionPolicy Bypass -Scope CurrentUser -Force
    
     
  9. zbigniew59

    zbigniew59 MDL Senior Member

    May 14, 2016
    373
    171
    10
  10. Pir8pete

    Pir8pete MDL Member

    Nov 15, 2018
    114
    32
    10
    #192 Pir8pete, Jan 11, 2020
    Last edited: Jan 11, 2020

    now it just get this;

    Code:
    PS C:\Users\Bedroom> D:\_Temp\Optimize-Offline-4.0.0.3\Start-Optimize.ps1
    Cannot process the "#requires" statement at line 2 because it is not in the correct format.
    The "#requires" statement must be in one of the following formats:
     "#requires -shellid <shellID>"
     "#requires -version <major.minor>"
     "#requires -pssnapin <psSnapInName> [-version <major.minor>]"
    At line:0 char:0
    
     
  11. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    874
    30
    You start the script with this command. with the period '.' before it.

    Code:
    .\Start-Optimize.ps1
    
     
  12. zbigniew59

    zbigniew59 MDL Senior Member

    May 14, 2016
    373
    171
    10
  13. Pir8pete

    Pir8pete MDL Member

    Nov 15, 2018
    114
    32
    10
    #195 Pir8pete, Jan 11, 2020
    Last edited: Jan 11, 2020

    why can I just open the script and use the green run button ? why all the complications here!!! and if I look back alot of miss information given.
     
  14. Pir8pete

    Pir8pete MDL Member

    Nov 15, 2018
    114
    32
    10
  15. Assasin13

    Assasin13 MDL Novice

    Aug 14, 2016
    23
    2
    0
    I have exactly the same problem with Pir8pete
     
  16. strotee

    strotee MDL Member

    Jan 30, 2011
    229
    205
    10
    Are you running it on Windows 10?
     
  17. Assasin13

    Assasin13 MDL Novice

    Aug 14, 2016
    23
    2
    0
    No and I suppose in the end that is the problem.
     
  18. Pir8pete

    Pir8pete MDL Member

    Nov 15, 2018
    114
    32
    10