Optimize-Offline Guide - Best Windows Debloating Tool for 17134, 17763, LTSC 2019 And 18362 ISO's.

Discussion in 'Windows 10' started by KedarWolf, Jul 30, 2019.

  1. drew84

    drew84 MDL Addicted

    Mar 13, 2014
    522
    975
    30
    #2 drew84, Jul 30, 2019
    Last edited: Aug 1, 2019
    Been a fan of this script for some time now (used it up to current 18950 release without any real issue),
    You might want to read @TheStutch's post here as to why he chose to maintain info on it, rather than
    open a dedicated thread.

    Might be worth a mention also that the script was written by MDL's @GodHand
    .. also I believe it is his intention to release a GUI version with additional facilities.

    Edit: ... and for @GodHand's thoughts see here
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. drew84

    drew84 MDL Addicted

    Mar 13, 2014
    522
    975
    30
    #3 drew84, Jul 31, 2019
    Last edited: Jul 31, 2019
    For general Info, I changed all 18362 instances tin the .ps1 script to 18945 and used with these settings

    PowerShell.exe -NoProfile -ExecutionPolicy Bypass -File .\Optimize-Offline.ps1 -SourcePath "D:\18945.1001\sources\install.wim" -WindowsApps "Select" -SystemApps -Packages -Features -Win32Calc -Registry

    ... current installed [main] OS, all working OK (still have to keep re-installing graphic driver though)

    ***************************************************************************************************

    ***************************************************************************************************
    Optimizing image: Windows 10 Enterprise
    ***************************************************************************************************

    2019-07-31T10:38:00 [INFO]: Supported Image Build: [18945]
    2019-07-31T10:38:03 [INFO]: Mounting Windows 10 Enterprise
    2019-07-31T10:38:42 [INFO]: Pre-Optimization Image Health State: [Healthy]
    2019-07-31T10:38:15 [INFO]: Removing Appx Provisioned Package: Microsoft.549981C3F5F10 = New Cortana UWP ?
    2019-07-31T10:38:18 [INFO]: Removing Appx Provisioned Package: Microsoft.BingWeather
    2019-07-31T10:38:22 [INFO]: Removing Appx Provisioned Package: Microsoft.GetHelp
    2019-07-31T10:38:25 [INFO]: Removing Appx Provisioned Package: Microsoft.Getstarted
    2019-07-31T10:38:28 [INFO]: Removing Appx Provisioned Package: Microsoft.HEIFImageExtension
    2019-07-31T10:38:32 [INFO]: Removing Appx Provisioned Package: Microsoft.Messaging
    2019-07-31T10:38:35 [INFO]: Removing Appx Provisioned Package: Microsoft.Microsoft3DViewer
    2019-07-31T10:38:38 [INFO]: Removing Appx Provisioned Package: Microsoft.MicrosoftOfficeHub
    2019-07-31T10:38:42 [INFO]: Removing Appx Provisioned Package: Microsoft.MicrosoftSolitaireCollection
    2019-07-31T10:38:45 [INFO]: Removing Appx Provisioned Package: Microsoft.MicrosoftStickyNotes
    2019-07-31T10:38:48 [INFO]: Removing Appx Provisioned Package: Microsoft.MixedReality.Portal
    2019-07-31T10:38:52 [INFO]: Removing Appx Provisioned Package: Microsoft.MSPaint
    2019-07-31T10:38:55 [INFO]: Removing Appx Provisioned Package: Microsoft.Office.OneNote
    2019-07-31T10:38:58 [INFO]: Removing Appx Provisioned Package: Microsoft.OneConnect
    2019-07-31T10:39:02 [INFO]: Removing Appx Provisioned Package: Microsoft.People
    2019-07-31T10:39:05 [INFO]: Removing Appx Provisioned Package: Microsoft.ScreenSketch
    2019-07-31T10:39:08 [INFO]: Removing Appx Provisioned Package: Microsoft.SkypeApp
    2019-07-31T10:39:11 [INFO]: Removing Appx Provisioned Package: Microsoft.VP9VideoExtensions
    2019-07-31T10:39:15 [INFO]: Removing Appx Provisioned Package: Microsoft.Wallet
    2019-07-31T10:39:18 [INFO]: Removing Appx Provisioned Package: Microsoft.WebMediaExtensions
    2019-07-31T10:39:21 [INFO]: Removing Appx Provisioned Package: Microsoft.WebpImageExtension
    2019-07-31T10:39:25 [INFO]: Removing Appx Provisioned Package: Microsoft.Windows.Photos
    2019-07-31T10:39:28 [INFO]: Removing Appx Provisioned Package: Microsoft.WindowsAlarms
    2019-07-31T10:39:31 [INFO]: Removing Appx Provisioned Package: Microsoft.WindowsCalculator
    2019-07-31T10:39:35 [INFO]: Removing Appx Provisioned Package: Microsoft.WindowsCamera
    2019-07-31T10:39:38 [INFO]: Removing Appx Provisioned Package: microsoft.windowscommunicationsapps
    2019-07-31T10:39:42 [INFO]: Removing Appx Provisioned Package: Microsoft.WindowsFeedbackHub
    2019-07-31T10:39:45 [INFO]: Removing Appx Provisioned Package: Microsoft.WindowsMaps
    2019-07-31T10:39:48 [INFO]: Removing Appx Provisioned Package: Microsoft.WindowsSoundRecorder
    2019-07-31T10:39:52 [INFO]: Removing Appx Provisioned Package: Microsoft.Xbox.TCUI
    2019-07-31T10:39:55 [INFO]: Removing Appx Provisioned Package: Microsoft.XboxApp
    2019-07-31T10:39:58 [INFO]: Removing Appx Provisioned Package: Microsoft.XboxGameOverlay
    2019-07-31T10:40:01 [INFO]: Removing Appx Provisioned Package: Microsoft.XboxGamingOverlay
    2019-07-31T10:40:05 [INFO]: Removing Appx Provisioned Package: Microsoft.XboxIdentityProvider
    2019-07-31T10:40:08 [INFO]: Removing Appx Provisioned Package: Microsoft.XboxSpeechToTextOverlay
    2019-07-31T10:40:11 [INFO]: Removing Appx Provisioned Package: Microsoft.YourPhone
    2019-07-31T10:40:14 [INFO]: Removing Appx Provisioned Package: Microsoft.ZuneMusic
    2019-07-31T10:40:18 [INFO]: Removing Appx Provisioned Package: Microsoft.ZuneVideo
    2019-07-31T10:40:21 [INFO]: Removing Appx Provisioned Package: MicrosoftWindows.UX.Client.ST = User Experience package ?
    2019-07-31T10:40:31 [INFO]: Importing Custom App Associations.
    2019-07-31T10:45:14 [INFO]: Removing System Application: 1527c705-839a-4832-9118-54d4Bd6a0c89 = Microsoft.Windows.FilePicker
    2019-07-31T10:45:17 [INFO]: Removing System Application: c5e2524a-ea46-4f67-841f-6a9465d9d515 = Microsoft.Windows.FileExplorer
    2019-07-31T10:45:20 [INFO]: Removing System Application: E2A4F912-2574-4A75-9BB0-0D023378592B = Microsoft.Windows.AppResolverUX
    2019-07-31T10:45:23 [INFO]: Removing System Application: F46D4000-FD22-4DB4-AC8E-4E1DDDE828FE = Microsoft.Windows.AddSuggestedFoldersToLibraryDialog
    2019-07-31T10:45:26 [INFO]: Removing System Application: Microsoft.BioEnrollment
    2019-07-31T10:45:29 [INFO]: Removing System Application: Microsoft.PPIProjection
    2019-07-31T10:45:32 [INFO]: Removing System Application: InputApp
    2019-07-31T10:45:35 [INFO]: Removing System Application: Microsoft.AAD.BrokerPlugin
    2019-07-31T10:45:38 [INFO]: Removing System Application: Microsoft.AccountsControl
    2019-07-31T10:45:41 [INFO]: Removing System Application: Microsoft.AsyncTextService
    2019-07-31T10:45:45 [INFO]: Removing System Application: Microsoft.CredDialogHost
    2019-07-31T10:45:48 [INFO]: Removing System Application: Microsoft.LockApp
    2019-07-31T10:45:51 [INFO]: Removing System Application: Microsoft.MicrosoftEdgeDevToolsClient
    2019-07-31T10:45:54 [INFO]: Removing System Application: Microsoft.MicrosoftEdge
    2019-07-31T10:45:57 [INFO]: Removing System Application: Microsoft.Windows.AssignedAccessLockApp
    2019-07-31T10:46:00 [INFO]: Removing System Application: Microsoft.Windows.ContentDeliveryManager
    2019-07-31T10:46:03 [INFO]: Removing System Application: Microsoft.Windows.NarratorQuickStart
    2019-07-31T10:46:06 [INFO]: Removing System Application: Microsoft.Windows.OOBENetworkCaptivePortal
    2019-07-31T10:46:09 [INFO]: Removing System Application: Microsoft.Windows.OOBENetworkConnectionFlow
    2019-07-31T10:46:12 [INFO]: Removing System Application: Microsoft.Windows.ParentalControls
    2019-07-31T10:46:15 [INFO]: Removing System Application: Microsoft.Windows.PeopleExperienceHost
    2019-07-31T10:46:18 [INFO]: Removing System Application: Microsoft.Windows.PinningConfirmationDialog
    2019-07-31T10:46:21 [INFO]: Removing System Application: Microsoft.XboxGameCallableUI
    2019-07-31T10:46:24 [INFO]: Removing System Application: MicrosoftWindows.UX.Inbox
    2019-07-31T10:47:44 [INFO]: Removing Windows Capability Package: App.Support.QuickAssist
    2019-07-31T10:47:51 [INFO]: Removing Windows Capability Package: Hello.Face.18917
    2019-07-31T10:47:58 [INFO]: Removing Windows Capability Package: Hello.Face.Migration.18917
    2019-07-31T10:49:05 [INFO]: Removing Windows Capability Package: MathRecognizer
    2019-07-31T10:49:12 [INFO]: Removing Windows Capability Package: Language.Handwriting
    2019-07-31T10:49:19 [INFO]: Removing Windows Capability Package: Language.Speech
    2019-07-31T10:49:26 [INFO]: Removing Windows Capability Package: OneCoreUAP.OneSync
    2019-07-31T10:49:38 [INFO]: Disabling Xbox Services and Drivers.
    2019-07-31T10:50:19 [INFO]: Disabling Windows Feature: Printing-PrintToPDFServices-Features <<<<-- Disabled Here
    2019-07-31T10:50:21 [INFO]: Disabling Windows Feature: Printing-XPSServices-Features
    2019-07-31T10:50:24 [INFO]: Disabling Windows Feature: WorkFolders-Client
    2019-07-31T10:50:27 [INFO]: Disabling Windows Feature: FaxServicesClientPackage
    2019-07-31T10:50:30 [INFO]: Disabling Windows Feature: Printing-Foundation-InternetPrinting-Client
    2019-07-31T10:50:33 [INFO]: Disabling Windows Feature: Printing-Foundation-Features
    2019-07-31T10:50:36 [INFO]: Disabling Windows Feature: MicrosoftWindowsPowerShellV2Root
    2019-07-31T10:50:39 [INFO]: Disabling Windows Feature: MicrosoftWindowsPowerShellV2
    2019-07-31T10:50:41 [INFO]: Disabling Windows Feature: SmbDirect
    2019-07-31T10:51:48 [INFO]: Enabling Windows Feature: Printing-PrintToPDFServices-Features <<<<-- Then Re-Enabled Here -- ??? Need to Check This
    2019-07-31T10:51:56 [INFO]: Applying Optimizations to the Offline Registry Hives.
    2019-07-31T10:52:15 [INFO]: Cleaning-up the Start Menu Layout.
    2019-07-31T10:52:19 [INFO]: Post-Optimization Image Health State: [Healthy]
    2019-07-31T10:52:22 [INFO]: Saving and Dismounting Windows 10 Enterprise
    2019-07-31T10:53:36 [INFO]: Exporting Windows 10 Enterprise using Maximum compression.
    2019-07-31T10:53:52 [INFO]: Finalizing Optimizations.
    2019-07-31T10:53:52 [INFO]: Optimize-Offline completed in [22] minutes with [0] errors.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. drew84

    drew84 MDL Addicted

    Mar 13, 2014
    522
    975
    30
    ... recently updated to 3.2.6.5 [thread is worth maintaining]
    accidently ran it on 18956 with no changes/adjustments .. all appears to be ok

    ... but this part might be of interest...

    Upcoming Features In-Progress
    This is to give a bit of information and insight as to what features are currently being implemented and tested on future versions of Optimize-Offline,
    what to expect and what will be getting implemented. All of these features, modules and add-ons are already either complete or going through debugging stages.

    • Offline update integrations - which will retrieve the appropriate packages automatically - will be introducted within a few weeks.
    • A full XML writer add-on module will allow for the creation of Answer Files using an editable form.
    • Current Windows Apps and manifests will be able to be updated.
    • A DISM.API and WimgAPI library will be incorporated allowing for full core component removal options and advanced imaging features.
    • The creation of custom WindowsPE bootable images will be implemented.
    • The ability to apply the image directly to a Virtual Disk or physical disk will be implemented using native Microsoft Win32 dlls (VirtDisk.dll, etc.)
    • Local and network deployment compatibility.
    • Additional runtime modules to further customize and attain full control over your system.
    • Many, many more features.
    The full GUI version is in its alpha stage and has been delayed to ensure complete compatibility with PowerShell 6. Its release will be coming soon, though.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. drew84

    drew84 MDL Addicted

    Mar 13, 2014
    522
    975
    30
    #6 drew84, Aug 10, 2019
    Last edited: Aug 15, 2019 at 19:43
    ... updated to
    3.2.6.7 (08-14-2019)

    - The Boot and Recovery images are now automatically mounted at the beginning of the script and remain mounted during the full runtime of the script. The Boot image will only be mounted if a Windows Installation Media ISO is used as the source image for optimization. If only an install.wim is provided, the Recovery image will only be mounted.
    - Drivers can now be added to the Boot and Recovery images.
    - In the 'Content\Additional\Drivers' directory are three new directories: Install, Boot and Recovery. Driver packages placed in the 'Install' directory will be added to the Install image, those placed in the 'Boot' directory will be added to the Boot image and those place in the 'Recovery' directory will be added to the Recovery image.
    - Updated the applied registry optimizations to accommodate the recent decoupling of the Windows Search and Cortana features which could have resulted in a non-functional search function.
    - Updated the functions module.
    - Optimized and updated additional script and module process code.

    3.2.6.6
    - Updated both the primary script and the functions module.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Pacunauta

    Pacunauta MDL Novice

    Oct 3, 2018
    4
    0
    0
    .PARAMETER -SystemApps
    Populates and outputs a Gridview list of all System Applications for selective removal.


    Thanks for this Script, testing ISOs 1809 and 1803 i cannot select more than one item at a time.

    What can be?
     
  6. KedarWolf

    KedarWolf MDL Senior Member

    Mar 17, 2016
    356
    217
    10
    You need to hold the CTRL key while selecting items.
     
  7. Pacunauta

    Pacunauta MDL Novice

    Oct 3, 2018
    4
    0
    0
    :/
    Thanks!
     
  8. KedarWolf

    KedarWolf MDL Senior Member

    Mar 17, 2016
    356
    217
    10
    Good point. I've never used a game that needed them, but I'll add that to the OP when I get a chance.
     
  9. akhmedtaia

    akhmedtaia MDL Addicted

    Nov 2, 2013
    501
    124
    30
    can anyone make video tutorial to use this toolkit : optimize-offline-guide-best-windows-debloating-tool-
    please
     
  10. Ejacu1337

    Ejacu1337 MDL Novice

    May 10, 2016
    5
    0
    0
  11. zalim581

    zalim581 MDL Novice

    Aug 12, 2019
    5
    0
    0
    I created an iso witout the packages ticked on your post, installed the windows and now windows update cant install updates. i triedamy methods to solve it but it says we couldnt complete the changes, undoing changes after reboot.
     
  12. KedarWolf

    KedarWolf MDL Senior Member

    Mar 17, 2016
    356
    217
    10
    #15 KedarWolf, Aug 15, 2019 at 22:35
    Last edited: Aug 15, 2019 at 23:11
    (OP)
    Edit: Did you download the latest version of Optimize Offline?

    Meant to edit my original post, not reply. :/
     
  13. zalim581

    zalim581 MDL Novice

    Aug 12, 2019
    5
    0
    0
    not the one with august 15 commits.
     
  14. zalim581

    zalim581 MDL Novice

    Aug 12, 2019
    5
    0
    0
    i also run the set-privacy and remove-onedrive scripts after installation.
     
  15. KedarWolf

    KedarWolf MDL Senior Member

    Mar 17, 2016
    356
    217
    10
    I run the Remove OneDrive scipt but I use a different Set Privacy script, not the one that comes with Optimize Offline.
     
  16. zalim581

    zalim581 MDL Novice

    Aug 12, 2019
    5
    0
    0
    hmm. can you provide it? and why do you think that there is something wrong with the stock script and need another one?
     
  17. KedarWolf

    KedarWolf MDL Senior Member

    Mar 17, 2016
    356
    217
    10