Disable Delivery Optimization service (breaks Windows Update & Store downloads)
- Single actionThis page belongs to a script, containing basic changes to achieve a task.
- Windows onlyThis script improves your privacy on Windows
- Impact: HighSystem Functionality Loss Risk: High
This action improves privacy with high impact when you run the recommended script. - Batch (batchfile)These changes use Windows system commands to update your settings.
- 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
This script disables Windows' peer-to-peer update sharing service.
Delivery Optimization 1 2 3 4 5 6 7 or Windows Update Delivery Optimization 6 7 is a Windows feature that distributes Windows and Microsoft Store app updates through peer-to-peer sharing 1 3. This feature enables Windows to download updates not just from Microsoft's servers but also from other computers 1 7. Microsoft states that its goal is to serve Windows and Store apps faster 7
By default 2, Windows downloads updates from and shares them with:
The feature affects updating system components including:
- Windows system updates 1 7
- Microsoft Store apps 1 7
- Microsoft Defender updates 1 7
- Microsoft Edge updates 1
- Xbox Game Pass (PC) 1
- Win32, Microsoft 365 apps 1
- Configuration Manager Express updates 1
- Dynamic updates 1
- MDM Agent 1
- Windows Package Manager 1
- MSIX Installer 1
This script disables the service that manages this functionality 2 3 4 5. By default, this 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.
When active, this service manages update downloads and sharing by connecting to various Microsoft endpoints 3.
It collects sensitive data including:
- Policies 3
- Content details 3
- Device specifications 3
- Information about other Windows devices 3
- IP addresses 4
It shares your data by continuously communicating with Microsoft servers 3 8.
This script enhances privacy by:
- Preventing your computer from uploading updates to other computers
- Blocking downloads from untrusted sources
- Stopping the service from collecting data about your device and network 3 4
This script also increases your security by reducing exposure to inbound connections 6.
It improves system performance by reducing bandwidth usage and stopping continuous background upload and download tasks.
However, this is a core Windows service that manages essential system functions. Disabling it may break Windows features and programs. This service is known to cause issues with Windows Updates and Microsoft Store downloads when disabled. You should use this script together with other scripts that disable Delivery Optimization (search for "Delivery Optimization") to avoid these side-effects.
The known side-effects include:
- Windows Update failures 8 9, causing errors with codes
0x80004002
8 10 and0x800f0988
10 - Microsoft Store app update and downloads failures 8 9 11, causing errors with code
0x800704C6
8 - Third-party update software, such as Windows Update MiniTool (WUMT) 12 13, may fail to function properly.
Disabling this service may cause issues with Windows Updates and automatic app updates if other Delivery Optimization settings are not correctly configured.
Technical Details
- Service name:
DoSvc
2 3 4 5 - Default startup mode:
Automatic
2 - Exposes incoming network traffic on port
7680
5
This script disables this service by removing it from startup.
Overview of default service statuses
OS Version | Status | Start type |
---|---|---|
Windows 10 (≥ 21H1) | 🟢 Running | Automatic |
Windows 11 (≥ 22H2) | 🟢 Running | Automatic |
This script should only be used by advanced users.
This script is not recommended for daily use as it breaks important functionality.
Consider creating a system restore point before doing any changes.
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. support.microsoft.com. (2022).
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/20221004174640/https://support.microsoft.com/en-us/windows/windows-update-delivery-optimization-and-privacy-bf86a244-8f26-a3c7-a137-a43bfbe688e8#WindowsVersion=Windows_11 - [Bug]: Windows Update and Store cannot download any files (error 0x80004002, 0x800704c6) · Issue #462 · undergroundwires/privacy.sexy. github.com. (2025).
Original: https://github.com/undergroundwires/privacy.sexy/issues/462
Archived: https://web.archive.org/web/20250129144615/https://github.com/undergroundwires/privacy.sexy/issues/462 - [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
Archived: https://web.archive.org/web/20250129144547/https://github.com/undergroundwires/privacy.sexy/issues/173 - [BUG]: Windows 10 Update Error 0x800f0988 · Issue #151 · undergroundwires/privacy.sexy. github.com. (2025).
Original: https://github.com/undergroundwires/privacy.sexy/issues/151
Archived: https://web.archive.org/web/20250129144609/https://github.com/undergroundwires/privacy.sexy/issues/151 - Disable Windows Update Data Collection breaks Windows Updates · undergroundwires/privacy.sexy · Discussion #461 · GitHub. github.com/. (2025).
Original: https://github.com/undergroundwires/privacy.sexy/discussions/461
Archived: https://web.archive.org/web/20250129144622/https://github.com/undergroundwires/privacy.sexy/discussions/461 - Windows Update MiniTool. Page 60. My Digital Life Forums. forums.mydigitallife.net. (2025).
Original: https://forums.mydigitallife.net/threads/windows-update-minitool.64939/page-60
Archived: https://web.archive.org/web/20250129144553/https://forums.mydigitallife.net/threads/windows-update-minitool.64939/page-60#post-1758362 - github.com. (2025).
Original: https://github.com/undergroundwires/privacy.sexy/issues/223
Archived: https://web.archive.org/web/20250129144745/https://github.com/undergroundwires/privacy.sexy/issues/223
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 Windows Update & 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 Windows Update & 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 Windows Update & 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; }"
Ijo6IFJlc3RvcmUgdGhlIHNlcnZpY2UgYERvU3ZjYCBcblBvd2VyU2hlbGwgLUV4ZWN1dGlvblBvbGljeSBVbnJlc3RyaWN0ZWQgLUNvbW1hbmQgXCIkc2VydmljZVF1ZXJ5ID0gJ0RvU3ZjJzsgJGRlZmF1bHRTdGFydHVwTW9kZSA9ICdBdXRvbWF0aWMnOyA8IyAtLSAxLiBTa2lwIGlmIHNlcnZpY2UgZG9lcyBub3QgZXhpc3QgIz47ICRzZXJ2aWNlID0gR2V0LVNlcnZpY2UgLU5hbWUgJHNlcnZpY2VRdWVyeSAtRXJyb3JBY3Rpb24gU2ls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wiXCI6ICRfXCJeXCJcIjsgRXhpdCAxOyB9OyB9OyA8IyAtLSA0LiBTdGFydCBpZiBub3QgcnVubmluZyAobXVzdCBiZSBlbmFibGVkIGZpcnN0KSAjPjsgaWYgKCRkZWZhdWx0U3RhcnR1cE1vZGUgLWVxICdBdXRvbWF0aWMnIC1vciAkZGVmYXVsdFN0YXJ0dXBNb2RlIC1lcSAnQm9vdCcgLW9yICRkZWZhdWx0U3RhcnR1cE1vZGUgLWVxICdTeXN0ZW0nKSB7IGlmICgkc2VydmljZS5TdGF0dXMgLW5lIFtTeXN0ZW0uU2VydmljZVByb2Nlc3MuU2VydmljZUNvbnRyb2xsZXJTdGF0dXNdOjpSdW5uaW5nKSB7IFdyaXRlLUhvc3QgXCJeXCJcImBcIl5cIlwiJHNlcnZpY2VOYW1lYFwiXlwiXCIgaXMgbm90IHJ1bm5pbmcsIHRyeWluZyB0byBzdGFydCBpdC5cIl5cIlwiOyB0cnkgeyBTdGFydC1TZXJ2aWNlIC1OYW1lICRzZXJ2aWNlTmFtZSAtRXJyb3JBY3Rpb24gU3RvcDsgV3JpdGUtSG9zdCAnU2VydmljZSBzdGFydGVkIHN1Y2Nlc3NmdWxseS4nOyB9IGNhdGNoIHsgV3JpdGUtV2FybmluZyBcIl5cIlwiRmFpbGVkIHRvIHJlc3RhcnQgc2VydmljZS4gSXQgd2lsbCBiZSBzdGFydGVkIGFmdGVyIHJlYm9vdC4gRXJyb3I6ICQoJF8uRXhjZXB0aW9uLk1lc3NhZ2UpXCJeXCJcIjsgfTsgfSBlbHNlIHsgV3JpdGUtSG9zdCBcIl5cIlwiYFwiXlwiXCIkc2VydmljZU5hbWVgXCJeXCJcIiBpcyBhbHJlYWR5IHJ1bm5pbmcsIG5vIG5lZWQgdG8gc3RhcnQuXCJeXCJcIjsgfTsgfVwiIg==
Help
How to apply or restore "Disable Delivery Optimization service (breaks Windows Update & 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 update and app sharing
- Disable OS data collection
This category prevents Windows from sharing updates and apps with other computers, and from downloading from them. Delivery Optimization is a Windows fea...
Same Goal
Another guide in Disable update and app sharing 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
- Audited and verified using automated security tests
Public review by large community
- Privacy enthusiasts and professionals peer-reviewed
- Millions of end-users tested across different environments
- Audited and verified using third-party security software
History
We continually monitor our guides, their impact and other potential 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.