Disable "Delivery Optimization" service (breaks Microsoft Store downloads)
- Windows onlyThis script improves your privacy on Windows
- Single actionThis page belongs to a script, containing basic changes to achieve a task.
- Impact: Medium
System Functionality / Data Loss Risk: Moderate
This action improves privacy with minimal impact when you run the recommended script.
This action improves privacy with some impact when you run the recommended script. - Batch (batchfile)These changes use Windows system commands to update your settings.
- Administrator rights requiredThis script requires privilege access to do the system changes
- Fully reversible
You can fully restore this action (revert back to the original behavior) using this website.
The restore/revert methods provided here can help you fix issues.
Overview
Delivery Optimization is a Windows feature that provides the Windows Updates through peer-to-peer sharing 1. In simple terms, instead of solely relying on Microsoft's servers for updates, your computer can also fetch them from other devices that already possess the necessary files.
The "Delivery Optimization" service manages these content delivery tasks 2 3. It orchestrates the retrieval of updates both from other Windows users 3. In doing so, it connects to various Microsoft service points to collect data, such as policies, content details, device specifications, and information about other Windows users 3. This data sharing raises privacy concerns.
This service also logs IP addresses 4 of peers which can be considered personal data. It listens on port 7680 for TCP/UDP traffic 5 that may expose the user to unwanted inbound traffic and enhancing security 6.
By default, the "Delivery Optimization" service is set to start automatically when Windows boots up 2. This script alters that behavior, ensuring it doesn't run unless explicitly started by the user.
Taking control of this service prevents Microsoft from activating peer-to-peer sharing, enhancing user privacy. It ensures your device doesn't share update data or fetch it from arbitrary peers.
Disabling this service affects the functionality of Windows Store. It plays a role not just in Windows Updates but also in Microsoft Store app downloads, especially since Windows 11 7. There have been reported issues with some app downloads on Windows 10 8. downloads, especially since Windows 11 7. There have been reported issues with some app downloads on Windows 10 8.
Overview of default service statuses
OS Version | Status | Start type |
---|---|---|
Windows 10 (≥ 21H1) | 🟢 Running | Automatic |
Windows 11 (≥ 22H2) | 🟢 Running | Automatic |
This script is only recommended if you understand its implications.
Some non-critical or features may no longer function correctly after running this script.
This script can be fully reversed to restore changes if something goes wrong.
Sources
- What is Delivery Optimization? - Windows Deployment. Microsoft Learn. (2023).
Original: https://learn.microsoft.com/en-us/windows/deployment/do/waas-delivery-optimization
Archived: https://web.archive.org/web/20230914164204/https://learn.microsoft.com/en-us/windows/deployment/do/waas-delivery-optimization - Guidance on disabling system services on Windows IoT Enterprise. Microsoft Learn. (2023).
Original: https://learn.microsoft.com/en-us/windows/iot/iot-enterprise/optimize/services
Archived: https://web.archive.org/web/20230905120815/https://learn.microsoft.com/en-us/windows/iot/iot-enterprise/optimize/services#delivery-optimization - Delivery Optimization client-service communication explained - Windows Deployment. Microsoft Learn. (2023).
Original: https://learn.microsoft.com/en-us/windows/deployment/do/delivery-optimization-workflow
Archived: https://web.archive.org/web/20230914172129/https://learn.microsoft.com/en-us/windows/deployment/do/delivery-optimization-workflow - Monitor Delivery Optimization - Windows Deployment. Microsoft Learn. (2023).
Original: https://learn.microsoft.com/en-us/windows/deployment/do/waas-delivery-optimization-monitor
Archived: https://web.archive.org/web/20230914164646/https://learn.microsoft.com/en-us/windows/deployment/do/waas-delivery-optimization-monitor - Deploying a privileged access solution. Microsoft Learn. (2023).
Original: https://learn.microsoft.com/en-us/security/privileged-access-workstations/privileged-access-deployment
Archived: https://web.archive.org/web/20230914172319/https://learn.microsoft.com/en-us/security/privileged-access-workstations/privileged-access-deployment - Internal Revenue Service Office of Safeguards - Windows 10. irs.gov. (2023).
Original: https://www.irs.gov/pub/irs-utl/win10.xlsx
Archived: https://web.archive.org/web/20230914171139/https://www.irs.gov/pub/irs-utl/win10.xlsx - Windows Update Delivery Optimization and privacy - Microsoft Support. (2023).
Original: https://support.microsoft.com/en-us/windows/windows-update-delivery-optimization-and-privacy-bf86a244-8f26-a3c7-a137-a43bfbe688e8
Archived: https://web.archive.org/web/20230914164355/https://support.microsoft.com/en-us/windows/windows-update-delivery-optimization-and-privacy-bf86a244-8f26-a3c7-a137-a43bfbe688e8 - [BUG] Error 0x80004002 on Microsoft Store when attempting to download an app · Issue #173 · undergroundwires/privacy.sexy. (2025).
Original: https://github.com/undergroundwires/privacy.sexy/issues/173
Apply Now
Choose one of three ways to apply:
Download script
Download and run the script directly- No app needed
- Offline usage
- Easy-to-apply
- Free
- Open-source
Help
How to apply or restore "Disable "Delivery Optimization" service (breaks Microsoft Store downloads)" using script
- ≈ 2 min to complete
- Tools: Web Browser
- Difficulty: Simple
- ≈ 5 instructions
- 1
Download
Download the script file by clicking on thebutton above.
Use button above to restore changes. - 2
Keep the file
If warned by your browser, keep the file. - 3
Open
Open the downloaded file. - 4
Exit
Once it's done, press any key to exit the window. - 5
Restart
Restart your computer for all changes to take effect.
Apply with privacy.sexy
Guided, automated application with safety checks- Recommended for most users
- Includes safety checks
- Free
- Open-source
- Popular
- Offline/Online usage
Help
How to apply or restore "Disable "Delivery Optimization" service (breaks Microsoft Store downloads)" using privacy.sexy
- ≈ 3 min to complete
- Tools: privacy.sexy
- Difficulty: Simple
- ≈ 4 instructions
- 2
Choose script
- Search for the script name: Disable "Delivery Optimization" service (breaks Microsoft Store downloads)
- Check the script by clicking on the checkbox.
- 3
Run
Click on ▶️ Run button at the bottom of the page.This button only appears on desktop version (recommended). On browser, use 💾 Save button.
- Apply
- Revert
:: Disable the service `DoSvc`
PowerShell -ExecutionPolicy Unrestricted -Command "$serviceQuery = 'DoSvc'; $stopWithDependencies= $false; <# -- 1. Skip if service does not exist #>; $service = Get-Service -Name $serviceQuery -ErrorAction SilentlyContinue; if(!$service) { Write-Host "^""Service query `"^""$serviceQuery`"^"" did not yield any results, no need to disable it."^""; Exit 0; }; $serviceName = $service.Name; Write-Host "^""Disabling service: `"^""$serviceName`"^""."^""; <# -- 2. Stop if running #>; if ($service.Status -eq [System.ServiceProcess.ServiceControllerStatus]::Running) { Write-Host "^""`"^""$serviceName`"^"" is running, attempting to stop it."^""; try { Write-Host "^""Stopping the service `"^""$serviceName`"^""."^""; $stopParams = @{ Name = $ServiceName; Force = $true; ErrorAction = 'Stop'; }; if (-not $stopWithDependencies) { $stopParams['NoWait'] = $true; }; Stop-Service @stopParams; Write-Host "^""Stopped `"^""$serviceName`"^"" successfully."^""; } catch { if ($_.FullyQualifiedErrorId -eq 'CouldNotStopService,Microsoft.PowerShell.Commands.StopServiceCommand') { Write-Warning "^""The service `"^""$serviceName`"^"" does not accept a stop command and may need to be stopped manually or on reboot."^""; } else { Write-Warning "^""Failed to stop service `"^""$ServiceName`"^"". It will be stopped after reboot. Error: $($_.Exception.Message)"^""; }; }; } else { Write-Host "^""`"^""$serviceName`"^"" is not running, no need to stop."^""; }; <# -- 3. Skip if service info is not found in registry #>; $registryKey = "^""HKLM:\SYSTEM\CurrentControlSet\Services\$serviceName"^""; if (-Not (Test-Path $registryKey)) { Write-Host "^""`"^""$registryKey`"^"" is not found in registry, cannot enable it."^""; Exit 0; }; <# -- 4. Skip if already disabled #>; if( $(Get-ItemProperty -Path "^""$registryKey"^"").Start -eq 4) { Write-Host "^""`"^""$serviceName`"^"" is already disabled from start, no further action is needed."^""; Exit 0; }; <# -- 5. Disable service #>; try { Set-ItemProperty -LiteralPath $registryKey -Name "^""Start"^"" -Value 4 -ErrorAction Stop; Write-Host 'Successfully disabled the service. It will not start automatically on next boot.'; } catch { Write-Error "^""Failed to disable the service. Error: $($_.Exception.Message)"^""; Exit 1; }"
Ijo6IFJlc3RvcmUgdGhlIHNlcnZpY2UgYERvU3ZjYCBcblBvd2VyU2hlbGwgLUV4ZWN1dGlvblBvbGljeSBVbnJlc3RyaWN0ZWQgLUNvbW1hbmQgXCIkc2VydmljZVF1ZXJ5ID0gJ0RvU3ZjJzsgJGRlZmF1bHRTdGFydHVwTW9kZSA9ICdBdXRvbWF0aWMnOyA8IyAtLSAxLiBTa2lwIGlmIHNlcnZpY2UgZG9lcyBub3QgZXhpc3QgIz47ICRzZXJ2aWNlID0gR2V0LVNlcnZpY2UgLU5hbWUgJHNlcnZpY2VRdWVyeSAtRXJyb3JBY3Rpb24gU2lsZW50bHlDb250aW51ZTsgaWYgKCEkc2VydmljZSkgeyBXcml0ZS1XYXJuaW5nIFwiXlwiXCJTZXJ2aWNlIHF1ZXJ5IGBcIl5cIlwiJHNlcnZpY2VRdWVyeWBcIl5cIlwiIGRpZ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hcnR1cE1vZGUgLWVxICdBdXRvbWF0aWMnIC1vciAkZGVmYXVsdFN0YXJ0dXBNb2RlIC1lcSAnQm9vdCcgLW9yICRkZWZhdWx0U3RhcnR1cE1vZGUgLWVxICdTeXN0ZW0nKSB7IGlmICgkc2VydmljZS5TdGF0dXMgLW5lIFtTeXN0ZW0uU2VydmljZVByb2Nlc3MuU2VydmljZUNvbnRyb2xsZXJTdGF0dXNdOjpSdW5uaW5nKSB7IFdyaXRlLUhvc3QgXCJeXCJcImBcIl5cIlwiJHNlcnZpY2VOYW1lYFwiXlwiXCIgaXMgbm90IHJ1bm5pbmcsIHRyeWluZyB0byBzdGFydCBpdC5cIl5cIlwiOyB0cnkgeyBTdGFydC1TZXJ2aWNlIC1OYW1lICRzZXJ2aWNlTmFtZSAtRXJyb3JBY3Rpb24gU3RvcDsgV3JpdGUtSG9zdCAnU2VydmljZSBzdGFydGVkIHN1Y2Nlc3NmdWxseS4nOyB9IGNhdGNoIHsgV3JpdGUtV2FybmluZyBcIl5cIlwiRmFpbGVkIHRvIHJlc3RhcnQgc2VydmljZS4gSXQgd2lsbCBiZSBzdGFydGVkIGFmdGVyIHJlYm9vdC4gRXJyb3I6ICQoJF8uRXhjZXB0aW9uLk1lc3NhZ2UpXCJeXCJcIjsgfTsgfSBlbHNlIHsgV3JpdGUtSG9zdCBcIl5cIlwiYFwiXlwiXCIkc2VydmljZU5hbWVgXCJeXCJcIiBpcyBhbHJlYWR5IHJ1bm5pbmcsIG5vIG5lZWQgdG8gc3RhcnQuXCJeXCJcIjsgfTsgfVwiIg==
Help
How to apply or restore "Disable "Delivery Optimization" service (breaks Microsoft Store downloads)" using commands
- ≈ 2 min to complete
- Tools: Command Prompt
- Difficulty: Medium
- ≈ 3 instructions
- 1
Open Command Prompt
Open Command Prompt as Administrator. - 2
Copy code
Copy the code: - 3
Paste & run
Paste the commands into Command Prompt and press Enter to run.Some changes require a system restart to take effect
Similar Guides
Wider Goal
Guides below includes this guide to achieve a wider goal.See other more general settings that includes this one as one of its actions.
These plans combine multiple privacy settings, including this one, for stronger protection.
- Disable obtaining updates from other PCs on the Internet (delivery optimization)
- Disable Windows Update data collection
- Disable OS data collection
Windows Delivery Optimization is a feature introduced by Microsoft to facilitate a more efficient downloading process for Windows updates, upgrades, and applicatio...
This option lays out the steps for: disable Windows Update data collection on Windows to protect your system as result of digital data privacy integration. Moving ...
Disable OS data collection — to reduce data exposure leveraging important data privacy safeguard on Windows. What follows is, this guidance provides instructions t...
Same Goal
Another guide in Disable obtaining updates from other PCs on the Internet (delivery optimization)See settings that are in the same category as this guide.
Using other actions in the same category may help you achieve your goal better.
About the Creators
These people have authored this documentation and written its scripts:
Reviewed By
This guide has undergone comprehensive auditing and peer review:Expert review by undergroundwires
- Verified technical accuracy and editorial standards
- Assessed system impact and user privacy risks
Public review by large community
- Privacy enthusiasts and professionals peer-reviewed
- Millions of end-users tested across different environments
History
We continually monitor our guides, their impact and all other privacy options. We update our guides when new information becomes available. On every update, we publicly store who made the change, what has been changed, why the change was made and when the change was made.