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

    quakze MDL Junior Member

    Dec 15, 2011
    74
    16
    0
    So no solution to run script on Server OS, Hmmm..
    I tried to edit .ps1 and psm1 with Notepad3, but no success yet !
    Really appreciate your support/help, Thanks :):):)
     
  2. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    Maybe @gdeliana can add Server support. :)
     
  3. gdeliana

    gdeliana MDL Senior Member

    Oct 2, 2010
    363
    410
    10
    Perfect will play around with the iso in OO tool and see what i can do :)
     
  4. Stafamu

    Stafamu MDL Novice

    Sep 22, 2018
    33
    22
    0
    #1524 Stafamu, Nov 30, 2021
    Last edited: Nov 30, 2021
    You can customize any windows 10 version from 1809 above (with God Hands original script). I modify Server 1903 last year.
    I cannot remember which files I changed but I know it was not not a big deal. Just go deeper inside relevant files and remove word "Server"
     
  5. gdeliana

    gdeliana MDL Senior Member

    Oct 2, 2010
    363
    410
    10
  6. Loxmox

    Loxmox MDL Novice

    Oct 23, 2020
    17
    7
    0
  7. gdeliana

    gdeliana MDL Senior Member

    Oct 2, 2010
    363
    410
    10
    Hello there,

    To respond your questions:
    1. Will give it a try and let you know
    2. Can you try DisableWindowsUpdateMicrosoft it completely shuts down communication with microsoft. DisableWindowsUpdate is mostly to disable cummulative updates to your windows version. Will update the readme with this info.

    EDIT1: DisableWindowsUpdateMicrosoft disables also Microsoft Store downloads. If you want just to simply disable the windows update service use the disable services list and add there the windows update service and it's related services. But even in this case Store might complain as it uses those services for downloading the apps.
     
  8. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    I used the Edge removal script, now some apps that open links are complaining they cannot open them, even though I have Chrome as my default browser. Like in Discord when I click on a link.

    The same thing happens if you remove Edge with Optimize Offline, which is why I don't. The links will open with Chrome properly.
     
  9. AveYo

    AveYo MDL Expert

    Feb 10, 2009
    1,836
    5,692
    60
    ChrEdgeFkOff to the rescue - Works great regardless of Edge / ChrEdge / PieceOfs**tEdge installed or removed
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. gdeliana

    gdeliana MDL Senior Member

    Oct 2, 2010
    363
    410
    10
    Ok have 2 days trying to successfully remove edge, i just don't get it, the app in the program files, is not at all removable by the Remove-AppxProvisionedPackage, tried what @BAU is doing in offline wim, it complains that files are in use???

    After using @BAU script, edge was eradicated in online image, then i tried to install edge insider, by manually downloading it, it installed and then as soon as you open it just closes. Ok makes sense, once you remove it, there is no turning back :rolleyes:

    I have heard about scripts that windows executes at first login attempt. Maybe we could put that to be triggered on the first login?
     
  11. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    #1534 KedarWolf, Dec 14, 2021
    Last edited: Dec 14, 2021
    (OP)
    @gdeliana Small bug, if you exit out of the TUA script without it finishing and rerun it, it doesn't delete the previous temp folder.

    However, if I exit out early and run the populateTemplates.bat it DOES delete the previous temp folder.

    Sometimes the script will exit from a wrong setting or I close it early as I see something I never wanted to disable as I run it, why I ask.

    Edit: Oh wait, yeah, never deleted old temp directory.
     
  12. Assasin13

    Assasin13 MDL Novice

    Aug 14, 2016
    23
    2
    0
    Do we have any additional registry tweaks that I should include when creating my Image?
     
  13. Assasin13

    Assasin13 MDL Novice

    Aug 14, 2016
    23
    2
    0
    2 questions KedarWolf.
    1) How do you run the SetAdditional.cmd? After windows installation or while creating the image?
    2) # Disable Clipboard history, its synchronization service and any Remote Desktop redirection. <--what this does exactly?
     
  14. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    You run it after installing the operating system.

    It just stops some spying stuff Microsoft does but breaks the copy\paste function in the Search Box in the taskbar and the Search Box in File Explorer, which is a deal-breaker for me, why I don't leave it in.
     
  15. Assasin13

    Assasin13 MDL Novice

    Aug 14, 2016
    23
    2
    0
    Ok I wanted to understand if it breaks some functionality with Remote Desktop since I use it a lot these days. Thank you
     
  16. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    870
    30
    Yeah, it might affect functionality. Also, there are some services disabled might affect it as well.

    Here is the list and there is a Remote Registry service.

    Code:
    [
        {
            "Name":  "AJRouter",
            "Description":  "AllJoyn Router Service",
            "ServiceName":  "AJRouter",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "ALG",
            "Description":  "Application Layer Gateway Service",
            "ServiceName":  "ALG",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "AppVClient",
            "Description":  "Microsoft App-V Client",
            "ServiceName":  "AppVClient",
            "Status":  1,
            "StartType":  4,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "bthserv",
            "Description":  "Bluetooth Support Service",
            "ServiceName":  "bthserv",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "CDPSvc",
            "Description":  "Connected Devices Platform Service",
            "ServiceName":  "CDPSvc",
            "Status":  4,
            "StartType":  2,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "CertPropSvc",
            "Description":  "Certificate Propagation",
            "ServiceName":  "CertPropSvc",
            "Status":  4,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "CscService",
            "Description":  "Offline Files",
            "ServiceName":  "CscService",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "diagnosticshub.standardcollector.service",
            "Description":  "Microsoft (R) Diagnostics Hub Standard Collector Service",
            "ServiceName":  "diagnosticshub.standardcollector.service",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "diagsvc",
            "Description":  "Diagnostic Execution Service",
            "ServiceName":  "diagsvc",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "DiagTrack",
            "Description":  "Connected User Experiences and Telemetry",
            "ServiceName":  "DiagTrack",
            "Status":  4,
            "StartType":  2,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "dmwappushservice",
            "Description":  "Device Management Wireless Application Protocol (WAP) Push message Routing Service",
            "ServiceName":  "dmwappushservice",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "DoSvc",
            "Description":  "Delivery Optimization",
            "ServiceName":  "DoSvc",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "DsSvc",
            "Description":  "Data Sharing Service",
            "ServiceName":  "DsSvc",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "DusmSvc",
            "Description":  "Data Usage",
            "ServiceName":  "DusmSvc",
            "Status":  4,
            "StartType":  2,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "FrameServer",
            "Description":  "Windows Camera Frame Server",
            "ServiceName":  "FrameServer",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "HvHost",
            "Description":  "HV Host Service",
            "ServiceName":  "HvHost",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "icssvc",
            "Description":  "Windows Mobile Hotspot Service",
            "ServiceName":  "icssvc",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "iphlpsvc",
            "Description":  "IP Helper",
            "ServiceName":  "iphlpsvc",
            "Status":  4,
            "StartType":  2,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "lfsvc",
            "Description":  "Geolocation Service",
            "ServiceName":  "lfsvc",
            "Status":  1,
            "StartType":  4,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "MapsBroker",
            "Description":  "Downloaded Maps Manager",
            "ServiceName":  "MapsBroker",
            "Status":  1,
            "StartType":  4,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "MSiSCSI",
            "Description":  "Microsoft iSCSI Initiator Service",
            "ServiceName":  "MSiSCSI",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "NcbService",
            "Description":  "Network Connection Broker",
            "ServiceName":  "NcbService",
            "Status":  4,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "PcaSvc",
            "Description":  "Program Compatibility Assistant Service",
            "ServiceName":  "PcaSvc",
            "Status":  4,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "PeerDistSvc",
            "Description":  "BranchCache",
            "ServiceName":  "PeerDistSvc",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "PhoneSvc",
            "Description":  "Phone Service",
            "ServiceName":  "PhoneSvc",
            "Status":  1,
            "StartType":  4,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "RemoteAccess",
            "Description":  "Routing and Remote Access",
            "ServiceName":  "RemoteAccess",
            "Status":  1,
            "StartType":  4,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "RemoteRegistry",
            "Description":  "Remote Registry",
            "ServiceName":  "RemoteRegistry",
            "Status":  1,
            "StartType":  4,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "RetailDemo",
            "Description":  "Retail Demo Service",
            "ServiceName":  "RetailDemo",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "RpcLocator",
            "Description":  "Remote Procedure Call (RPC) Locator",
            "ServiceName":  "RpcLocator",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "SCardSvr",
            "Description":  "Smart Card",
            "ServiceName":  "SCardSvr",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "ScDeviceEnum",
            "Description":  "Smart Card Device Enumeration Service",
            "ServiceName":  "ScDeviceEnum",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "SCPolicySvc",
            "Description":  "Smart Card Removal Policy",
            "ServiceName":  "SCPolicySvc",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "SecurityHealthService",
            "Description":  "Windows Security Service",
            "ServiceName":  "SecurityHealthService",
            "Status":  1,
            "StartType":  4,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "SEMgrSvc",
            "Description":  "Payments and NFC/SE Manager",
            "ServiceName":  "SEMgrSvc",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "Sense",
            "Description":  "Windows Defender Advanced Threat Protection Service",
            "ServiceName":  "Sense",
            "Status":  1,
            "StartType":  4,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "SensorDataService",
            "Description":  "Sensor Data Service",
            "ServiceName":  "SensorDataService",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "SensorService",
            "Description":  "Sensor Service",
            "ServiceName":  "SensorService",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "SensrSvc",
            "Description":  "Sensor Monitoring Service",
            "ServiceName":  "SensrSvc",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "SessionEnv",
            "Description":  "Remote Desktop Configuration",
            "ServiceName":  "SessionEnv",
            "Status":  4,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "SgrmBroker",
            "Description":  "System Guard Runtime Monitor Broker",
            "ServiceName":  "SgrmBroker",
            "Status":  4,
            "StartType":  2,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "SharedAccess",
            "Description":  "Internet Connection Sharing (ICS)",
            "ServiceName":  "SharedAccess",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "shpamsvc",
            "Description":  "Shared PC Account Manager",
            "ServiceName":  "shpamsvc",
            "Status":  1,
            "StartType":  4,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "SmsRouter",
            "Description":  "Microsoft Windows SMS Router Service.",
            "ServiceName":  "SmsRouter",
            "Status":  4,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "SNMPTRAP",
            "Description":  "SNMP Trap",
            "ServiceName":  "SNMPTRAP",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "SSDPSRV",
            "Description":  "SSDP Discovery",
            "ServiceName":  "SSDPSRV",
            "Status":  4,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "stisvc",
            "Description":  "Windows Image Acquisition (WIA)",
            "ServiceName":  "stisvc",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "SysMain",
            "Description":  "SysMain",
            "ServiceName":  "SysMain",
            "Status":  4,
            "StartType":  2,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "TabletInputService",
            "Description":  "Touch Keyboard and Handwriting Panel Service",
            "ServiceName":  "TabletInputService",
            "Status":  4,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "TermService",
            "Description":  "Remote Desktop Services",
            "ServiceName":  "TermService",
            "Status":  4,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "TrkWks",
            "Description":  "Distributed Link Tracking Client",
            "ServiceName":  "TrkWks",
            "Status":  4,
            "StartType":  2,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "tzautoupdate",
            "Description":  "Auto Time Zone Updater",
            "ServiceName":  "tzautoupdate",
            "Status":  1,
            "StartType":  4,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "UevAgentService",
            "Description":  "User Experience Virtualization Service",
            "ServiceName":  "UevAgentService",
            "Status":  1,
            "StartType":  4,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "UmRdpService",
            "Description":  "Remote Desktop Services UserMode Port Redirector",
            "ServiceName":  "UmRdpService",
            "Status":  4,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "upnphost",
            "Description":  "UPnP Device Host",
            "ServiceName":  "upnphost",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "vmicguestinterface",
            "Description":  "Hyper-V Guest Service Interface",
            "ServiceName":  "vmicguestinterface",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "vmicheartbeat",
            "Description":  "Hyper-V Heartbeat Service",
            "ServiceName":  "vmicheartbeat",
            "Status":  4,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "vmickvpexchange",
            "Description":  "Hyper-V Data Exchange Service",
            "ServiceName":  "vmickvpexchange",
            "Status":  4,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "vmicrdv",
            "Description":  "Hyper-V Remote Desktop Virtualization Service",
            "ServiceName":  "vmicrdv",
            "Status":  4,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "vmicshutdown",
            "Description":  "Hyper-V Guest Shutdown Service",
            "ServiceName":  "vmicshutdown",
            "Status":  4,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "vmictimesync",
            "Description":  "Hyper-V Time Synchronization Service",
            "ServiceName":  "vmictimesync",
            "Status":  4,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "vmicvmsession",
            "Description":  "Hyper-V PowerShell Direct Service",
            "ServiceName":  "vmicvmsession",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "vmicvss",
            "Description":  "Hyper-V Volume Shadow Copy Requestor",
            "ServiceName":  "vmicvss",
            "Status":  4,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "WalletService",
            "Description":  "WalletService",
            "ServiceName":  "WalletService",
            "Status":  1,
            "StartType":  4,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "WbioSrvc",
            "Description":  "Windows Biometric Service",
            "ServiceName":  "WbioSrvc",
            "Status":  1,
            "StartType":  4,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "WdNisSvc",
            "Description":  "Microsoft Defender Antivirus Network Inspection Service",
            "ServiceName":  "WdNisSvc",
            "Status":  1,
            "StartType":  4,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "Wecsvc",
            "Description":  "Windows Event Collector",
            "ServiceName":  "Wecsvc",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "wercplsupport",
            "Description":  "Problem Reports Control Panel Support",
            "ServiceName":  "wercplsupport",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "WerSvc",
            "Description":  "Windows Error Reporting Service",
            "ServiceName":  "WerSvc",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "WinDefend",
            "Description":  "Microsoft Defender Antivirus Service",
            "ServiceName":  "WinDefend",
            "Status":  1,
            "StartType":  4,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "WinHttpAutoProxySvc",
            "Description":  "WinHTTP Web Proxy Auto-Discovery Service",
            "ServiceName":  "WinHttpAutoProxySvc",
            "Status":  4,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "WinRM",
            "Description":  "Windows Remote Management (WS-Management)",
            "ServiceName":  "WinRM",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "wisvc",
            "Description":  "Windows Insider Service",
            "ServiceName":  "wisvc",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "WMPNetworkSvc",
            "Description":  "Windows Media Player Network Sharing Service",
            "ServiceName":  "WMPNetworkSvc",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "WpcMonSvc",
            "Description":  "Parental Controls",
            "ServiceName":  "WpcMonSvc",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "WSearch",
            "Description":  "Windows Search",
            "ServiceName":  "WSearch",
            "Status":  4,
            "StartType":  2,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "WwanSvc",
            "Description":  "WWAN AutoConfig",
            "ServiceName":  "WwanSvc",
            "Status":  1,
            "StartType":  3,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "XblAuthManager",
            "Description":  "Xbox Live Auth Manager",
            "ServiceName":  "XblAuthManager",
            "Status":  1,
            "StartType":  4,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "XblGameSave",
            "Description":  "Xbox Live Game Save",
            "ServiceName":  "XblGameSave",
            "Status":  1,
            "StartType":  4,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "XboxGipSvc",
            "Description":  "Xbox Accessory Management Service",
            "ServiceName":  "XboxGipSvc",
            "Status":  1,
            "StartType":  4,
            "SetStatus":  "Disabled"
        },
        {
            "Name":  "XboxNetApiSvc",
            "Description":  "Xbox Live Networking Service",
            "ServiceName":  "XboxNetApiSvc",
            "Status":  1,
            "StartType":  4,
            "SetStatus":  "Disabled"
        }
    ]
    © 2021 GitHub, Inc.
    Terms
    Privacy
    Secu