Disable USB data collection
- Single actionThis page belongs to a script, containing basic changes to achieve a task.
- Windows onlyThis script improves your privacy on Windows
- Impact: MinimumSystem Functionality Loss Risk: Low
This action improves privacy with minimal 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 the "UsbCeip" scheduled task.
This task is part of the Windows Customer Experience Improvement Program 1 2 3. The task collects data about USB devices connected to your computer 4. This data is then sent to Microsoft's engineering team 4. While the aim is to improve USB functionality in Windows 4, it raises privacy concerns.
If a user opts out of the Windows Customer Experience Improvement Program (CEIP), this task remains inactive 1 4. This script disables the task to ensure it remains inactive.
Disabling this task reduces data collection, enhancing your privacy. Microsoft recommends disabling this task to reduce data collection 5. The Argentine government suggests disabling this task for enhanced privacy 7. The Polish government recommends deleting this task for additional privacy 8.
Additionally, disabling this task can improve your system performance. Both Microsoft 1 5 6 and VMWare 2 recommend disabling this task for better performance.
Overview of default task statuses
\Microsoft\Windows\Customer Experience Improvement Program\UsbCeip
:
OS Version | Default status |
---|---|
Windows 10 22H2 | 🟢 Ready |
Windows 11 22H2 | 🟢 Ready |
Windows 11 23H2 | 🟢 Ready |
Sources
- Windows Client Assessment Recommendations Report generated on: 06/13/2019. learn.microsoft.com. (2023).
Original: https://learn.microsoft.com/en-us/services-hub/health/other/work-with-results/assessmentplanreport_windowsclientassessmentplus.xlsx
Archived: https://web.archive.org/web/20231002104948/https://learn.microsoft.com/en-us/services-hub/health/other/work-with-results/assessmentplanreport_windowsclientassessmentplus.xlsx - Disable the Windows Customer Experience Improvement Program. docs.vmware.com. (2023).
Original: https://docs.vmware.com/en/VMware-Horizon-7/7.13/horizon-virtual-desktops/GUID-BE82165B-13BC-4FD9-A9CF-FBEF6343D98A.html
Archived: https://web.archive.org/web/20231017193840/https://docs.vmware.com/en/VMware-Horizon-7/7.13/horizon-virtual-desktops/GUID-BE82165B-13BC-4FD9-A9CF-FBEF6343D98A.html - Recommended configuration for VDI desktops. Microsoft Learn. learn.microsoft.com. (2023).
Original: https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/rds-vdi-recommendations
Archived: https://web.archive.org/web/20231017194013/https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/rds-vdi-recommendations#task-scheduler - Optimizing Windows 10, version 1909, for a Virtual Desktop Infrastructure (VDI) role. Microsoft Learn. learn.microsoft.com. (2023).
Original: https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/rds_vdi-recommendations-1909
Archived: https://web.archive.org/web/20231002162808/https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/rds_vdi-recommendations-1909#scheduled-tasks - Hot off the presses, get it now, the Windows 8 VDI optimization script, courtesy of PFE!. Microsoft Docs. docs.microsoft.com. (2022).
Original: https://docs.microsoft.com/en-us/archive/blogs/jeff_stokes/hot-off-the-presses-get-it-now-the-windows-8-vdi-optimization-script-courtesy-of-pfe
Archived: https://web.archive.org/web/20220120073244/https://docs.microsoft.com/en-us/archive/blogs/jeff_stokes/hot-off-the-presses-get-it-now-the-windows-8-vdi-optimization-script-courtesy-of-pfe - A complete task sequence for deploying a client operating system. Government of Argentin. argentinacompra.gov.ara. (2023).
Original: http://onc-ftp1.argentinacompra.gov.ar/0091/000/020000042017001000/CNV-000736230001.xml
Archived: https://archive.ph/2023.10.17-193954/http://onc-ftp1.argentinacompra.gov.ar/0091/000/020000042017001000/CNV-000736230001.xml - WYMAGANIA - dla stacji roboczych stanowisk obsługi dla użytkowników końcowych SRP. plid.obywatel.gov.pl. (2023).
Original: https://plid.obywatel.gov.pl/wp-content/uploads/2014/08/Wymagania-dla-stacji-koncowych-SRP-v-5-0.pdf
Archived: https://web.archive.org/web/20231011231107/https://plid.obywatel.gov.pl/wp-content/uploads/2014/08/Wymagania-dla-stacji-koncowych-SRP-v-5-0.pdf - windows.fyicenter.com. (2023).
Original: http://windows.fyicenter.com/4254_UsbCeip_Scheduled_Task_on_Windows_7.html
Archived: https://web.archive.org/web/20231017193828/http://windows.fyicenter.com/4254_UsbCeip_Scheduled_Task_on_Windows_7.html
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 USB data collection" 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 USB data collection" using privacy.sexy
- ≈ 3 min to complete
- Tools: privacy.sexy
- Difficulty: Simple
- ≈ 4 instructions
- 2
Choose script
- Search for the script name: Disable USB data collection
- 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 scheduled task(s): `\Microsoft\Windows\Customer Experience Improvement Program\UsbCeip`
PowerShell -ExecutionPolicy Unrestricted -Command "$taskPathPattern='\Microsoft\Windows\Customer Experience Improvement Program\'; $taskNamePattern='UsbCeip'; Write-Output "^""Disabling tasks matching pattern `"^""$taskNamePattern`"^""."^""; $tasks = @(Get-ScheduledTask -TaskPath $taskPathPattern -TaskName $taskNamePattern -ErrorAction Ignore); if (-Not $tasks) { Write-Output "^""Skipping, no tasks matching pattern `"^""$taskNamePattern`"^"" found, no action needed."^""; exit 0; }; $operationFailed = $false; foreach ($task in $tasks) { $taskName = $task.TaskName; if ($task.State -eq [Microsoft.PowerShell.Cmdletization.GeneratedTypes.ScheduledTask.StateEnum]::Disabled) { Write-Output "^""Skipping, task `"^""$taskName`"^"" is already disabled, no action needed."^""; continue; }; try { $task | Disable-ScheduledTask -ErrorAction Stop | Out-Null; Write-Output "^""Successfully disabled task `"^""$taskName`"^""."^""; } catch { Write-Error "^""Failed to disable task `"^""$taskName`"^"": $($_.Exception.Message)"^""; $operationFailed = $true; }; }; if ($operationFailed) { Write-Output 'Failed to disable some tasks. Check error messages above.'; exit 1; }"
Ijo6IFJlc3RvcmUgc2NoZWR1bGVkIHRhc2socykgdG8gZGVmYXVsdCBzdGF0ZTogYFxcTWljcm9zb2Z0XFxXaW5kb3dzXFxDdXN0b21lciBFeHBlcmllbmNlIEltcHJvdmVtZW50IFByb2dyYW1cXFVzYkNlaXBgXG5Qb3dlclNoZWxsIC1FeGVjdXRpb25Qb2xpY3kgVW5yZXN0cmljdGVkIC1Db21tYW5kIFwiJHRhc2tQYXRoUGF0dGVybj0nXFxNaWNyb3NvZnRcXFdpbmRvd3NcXEN1c3RvbWVyIEV4cGVyaWVuY2UgSW1wcm92ZW1lbnQgUHJvZ3JhbVxcJzsgJHRhc2tOYW1lUGF0dGVybj0nVXNiQ2VpcCc7ICRzaG91bGREaXNhYmxlID0gICRmYWxzZTsgV3JpdGUtT3V0cHV0IFwiXlwiXCJFbmFibGluZyB0YXNrcyBtYXRjaGluZyBwYXR0ZXJuIGBcIl5cIlwiJHRhc2tOYW1lUGF0dGVybmBcIl5cIlwiLlwiXlwiXCI7ICR0YXNrcyA9IEAoR2V0LVNjaGVkdWxlZFRhc2sgLVRhc2tQYXRoICR0YXNrUGF0aFBhdHRlcm4gLVRhc2tOYW1lICR0YXNrTmFtZVBhdHRlcm4gLUVycm9yQWN0aW9uIElnbm9yZSk7IGlmICgtTm90ICR0YXNrcykgeyBXcml0ZS1XYXJuaW5nICggXCJeXCJcIk1pc3NpbmcgdGFzazogQ2Fubm90IGVuYWJsZSwgbm8gdGFza3MgbWF0Y2hpbmcgcGF0dGVybiBgXCJeXCJcIiR0YXNrTmFtZVBhdHRlcm5gXCJeXCJcIiBmb3VuZC5cIl5cIlwiICsgXCJeXCJcIiBUaGlzIHRhc2sgYXBwZWF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WJsZS1TY2hlZHVsZWRUYXNrIC1FcnJvckFjdGlvbiBTdG9wIHwgT3V0LU51bGw7IFdyaXRlLU91dHB1dCBcIl5cIlwiU3VjY2Vzc2Z1bGx5IGRpc2FibGVkIHRhc2sgYFwiXlwiXCIkdGFza05hbWVgXCJeXCJcIi5cIl5cIlwiOyB9IGVsc2UgeyAkdGFzayB8IEVuYWJsZS1TY2hlZHVsZWRUYXNrIC1FcnJvckFjdGlvbiBTdG9wIHwgT3V0LU51bGw7IFdyaXRlLU91dHB1dCBcIl5cIlwiU3VjY2Vzc2Z1bGx5IGVuYWJsZWQgdGFzayBgXCJeXCJcIiR0YXNrTmFtZWBcIl5cIlwiLlwiXlwiXCI7IH07IH0gY2F0Y2ggeyBXcml0ZS1FcnJvciBcIl5cIlwiRmFpbGVkIHRvIHJlc3RvcmUgdGFzayBgXCJeXCJcIiR0YXNrTmFtZWBcIl5cIlwiOiAkKCRfLkV4Y2VwdGlvbi5NZXNzYWdlKVwiXlwiXCI7ICRvcGVyYXRpb25GYWlsZWQgPSAkdHJ1ZTsgfTsgfTsgaWYgKCRvcGVyYXRpb25GYWlsZWQpIHsgV3JpdGUtT3V0cHV0ICdGYWlsZWQgdG8gcmVzdG9yZSBzb21lIHRhc2tzLiBDaGVjayBlcnJvciBtZXNzYWdlcyBhYm92ZS4nOyBleGl0IDE7IH1cIiI=
Help
How to apply or restore "Disable USB data collection" 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 background customer experience data collection
- Disable Customer Experience Improvement Program
- Disable OS data collection
This category includes scripts that disable scheduled tasks from the Windows Customer Experience Improvement Program (CEIP). The CEIP, designed by Micros...
This script disables the Windows Customer Experience Improvement Program (CEIP). CEIP collects user interaction data with Windows. This includes hardware...
Same Goal
Other guides in Disable background customer experience data collection 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.
See all 8 guides
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.