UCPD velocity: what the Windows UserChoice Protection Driver does and how to disable it

Martin Brinkmann
Updated •
Windows 10, Windows 11

UCPD velocity is a scheduled task that keeps the UserChoice Protection Driver (UCPD.sys) running in Windows 10 and Windows 11. The driver blocks programs from writing the UserChoice Registry keys that hold your default apps. To turn it off, set the UCPD service to disabled, disable the UCPD velocity task, and restart.

This page explains what the driver does, how to check whether it is installed, how the task keeps it alive and how to switch both off.

What UCPD.sys and UCPD velocity do

The User Choice Protection Driver, UCPD for short, is a Windows filter driver whose single purpose is to block access to the UserChoice Registry keys. These keys define the default programs on the system: the default web browser, the PDF viewer, the image editor, and the handlers for file extensions and protocols. According to NinjaOne's administrator guide, it is present on Windows 10 from build 19045.3030 and on Windows 11 from version 22H2.

Up to then, programs could write to the UserChoice keys directly. A browser could set itself as the default for all supported file types, which saved users many clicks. Specialized tools such as SetUserFTA or Sophia Script did the same for home users and administrators.

Microsoft changed how defaults work in Windows 11 as well. Our guides on changing default programs on Windows 11 and setting default apps on Windows 11 cover the supported way to change them.

Find out if the UCPD driver is installed

Command Prompt output of sc query UCPD showing the UserChoice Protection Driver service state

You can check whether the filter driver is installed and running with one command:

  1. Open Start, type cmd and select Command Prompt from the results.
  2. Type sc query UCPD and press Enter.

If the service exists, the output lists its state, for example RUNNING.

How the UCPD velocity service works

The filter driver blocks access to certain UserChoice Registry keys by returning "access denied". Gunnar Haslinger published an analysis of the driver on his blog. Microsoft still allows access, but only for processes that pass these checks:

  1. Is the process signed by Microsoft?
  2. Is the process on the deny list?

Any third-party program that tries to change default apps, file extension handling or protocols is therefore blocked. The deny list includes Windows tools such as regedit.exe, reg.exe and powershell.exe, so they cannot serve as a workaround.

How to disable UCPD.sys

Disabling UCPD.sys takes two steps and a restart: set the startup type of the UserChoice Protection Driver to disabled, then deactivate the UCPD velocity task in the Task Scheduler. Run every command from an elevated prompt, otherwise you get "access denied".

  1. Set the startup type of UCPD to disabled.
  2. Deactivate the UCPD velocity task in the Task Scheduler.
  3. Restart the PC.

Step 1: Change the startup type of UCPD to disabled

Elevated Command Prompt running sc config UCPD start= disabled

This stops the filter driver from starting with Windows:

  1. Open Start, type cmd, and select Run as administrator.
  2. Run: sc config UCPD start= disabled (note the space after the equals sign).

Step 2: Deactivate UCPD velocity in the Task Scheduler

Task Scheduler showing the UCPD velocity task under AppxDeploymentClient

The UCPD velocity task makes sure the filter driver runs. It does so after each user sign-in. If its validation fails, it resets the startup type of the UCPD service to system start and starts the service. Disabling the driver works only if the startup type is set to disabled and the system is restarted. The task also checks the value of FeatureV2 in HKLM\SYSTEM\CurrentControlSet\Services\UCPD and sets it to 2 if it differs.

Here is how you disable the task:

  1. Open Start.
  2. Type Task Scheduler.
  3. Select "Run as administrator" from the list of options.
  4. Use the sidebar to go to Task Scheduler Library > Microsoft > Windows > AppxDeploymentClient.
  5. Right-click the UCPD velocity task and select Disable.

You may also run this from an elevated command prompt: schtasks.exe /change /Disable /TN "\Microsoft\Windows\AppxDeploymentClient\UCPD velocity"

Restart the system to complete the process. To switch protection back on, set the service to sc config UCPD start= auto, enable the same task again and restart.

What UCPD means for user choice

The filter makes no distinction between hostile and wanted changes. Legitimate programs such as web browsers are blocked, even if you want them to become the default, and so are tools like SetUserFTA that administrators run on purpose. The driver protects against malware that hijacks file associations, but it also removes options from users.

The driver surfaced in April 2024 without an announcement from Microsoft. Keep it enabled if you rely on its protection and change defaults through Settings. Disable it only on PCs you administer, for example when you manage defaults with scripts or tools, and consider switching it back on afterwards, since with the driver off any program running with sufficient rights can change which app opens your files.

Related: Setting default programs in Windows, Changing Windows 11 to classic view

Comments

  1. 45 RPM said on
    Reply

    I pray to win the lottery because if I did, since I have to use Windows to make a living, I would take all my Windows machines into the back garden and smash them to pieces with a slege hammer. They are making life intolerable with crap like this.

  2. Mark said on
    Reply

    I have no issue with MS closing possible security flaws, or wanting us to use gpo / intune policies. The problem is, they work by disabling functionality, there is no in between. What most admins want, is to give new user profiles a clean and efficient desktop to start with. Then let that user alter it to his / her liking. For example, if i set default app associations with gpo, it’s constantly reapplied at logon. Absolutely ridiculous, there are no companies that would want this.

  3. Nossy said on
    Reply

    I just search for ucpd.sys with everything voidtools and delete it with ecmo unlockit, restart the system after. Done.

  4. Geoff said on
    Reply

    Unfortunately this has not helped with changing a windows 11 default app.

    I’m wanting to open email PDF attachments with Chrome – not MS Edge.

    (Settings>default Apps>Choose defaults by File Type>.PDF>select Google Chrome and set as default …. it doesn’t change to Chrome and stays with MSE.)

    I followed your instructions above and rebooted. Completed the cmd command and then disabled UCPD in task scheduler as Admin.

    Rebooted but PDF remains defaulted to MSE.

    So if no fix for me, I presume I just enable the UCPD again, but do I need to do anything in the Command Prompt to re-enable the UCPD on Startup?

    Hope that makes sense and thanks for any help.

    1. Anonymous said on
      Reply

      Just wondering ….. after using the ‘hack’ and it doesn’t work …. is there a help for beyond that?

      1. Anonymous said on
        Reply

        Just seem to be – I’m still waiting :)

  5. Anonymous said on
    Reply

    TY for the post.

    Testing

    # Disable the UserChoice Protection Driver service
    Set-Service -Name “UCPD” -StartupType Disabled -ErrorAction SilentlyContinue

    # Get all tasks in the Task Scheduler
    $allTasks = schtasks /Query /FO LIST 2>&1

    # Check if the UCPD Velocity task exists in the Task Scheduler
    if ($allTasks -like “*UCPD Velocity*”) {
    # Get the full path of the UCPD Velocity task
    $taskPath = ($allTasks -split “`n” | Where-Object { $_ -like “*UCPD Velocity*” }) -replace “TaskName: “, “”

    # Disable the UCPD Velocity task in the Task Scheduler
    schtasks /Change /TN $taskPath /Disable -ErrorAction SilentlyContinue
    }

  6. Michael said on
    Reply

    So, those not in the EEA get this driver, but we DO NOT get the option EU got, to uninstall Edge, smh. I’d do almost anything to get Edge off my system.

  7. Hey hey hey ain't talking about love said on
    Reply

    I just updated 10 LTSC2019, no such thing. LTSC FTW.

  8. Gorilla Picnic Time said on
    Reply

    @Boris:

    “As an educated consumer, it is your duty to declaw Microsoft to the maximum level. Of course, there will be some problems. I will need to install drivers manually for new peripherals in few years. But that a small price to pay for having almost Linux like freedom and privacy without actually switching to Linux.”

    What are you people, on dope? – Mr. Hand, FTARH

    One can never, “declaw” M$ Windows. And it is NOTHING like having Linux. M$ Windows is a BLACK BOX. You can only whittle away so much but it’s never enough.

    Either the dope must be overpowering or you’re receiving a paycheck from M$. (or both)

  9. boris said on
    Reply

    I am so glad that I disabled Windows Updates, got better Anti-Virus software and doing daily backups. Everything that Microsoft is “introducing” is a new problem.

  10. John G. said on
    Reply

    Every day a new problem with MS. Thanks for the article! :]

  11. Haakon said on
    Reply

    I’ve always kept the Windows default browser and firewall block it.

    That way when surfing about in Firefox or whatever and the Windows default browser pops open, something sneaky is going on. And investigate accordingly.

    Alternatively, edit the Windows default browser exe to exx and expect a not-found error of some sort.

    These security tricks are as old as the hills.

    Cheers.

  12. Bobo said on
    Reply

    So, after doing this I get:

    SERVICE_NAME: UCPD
    TYPE : 2 FILE_SYSTEM_DRIVER
    STATE : 1 STOPPED
    WIN32_EXIT_CODE : 1077 (0x435)
    SERVICE_EXIT_CODE : 0 (0x0)
    CHECKPOINT : 0x0
    WAIT_HINT : 0x0

    I suppose it’s ok? Don’t like that it says two drivers and one stopped…But atleast it doesn’t say running anymore.

    Thanks to the original blogger!

  13. VioletMoon said on
    Reply

    More information is needed for readers:

    Here’s why the driver is installed:

    “In the EEA, Windows will always use customers’ configured app default settings for link and file types, including industry standard browser link types (http, https),” explained Microsoft. This driver is described as a “User Choice Protection Driver,” and when loaded, prevents direct editing of the Registry keys associated with the HTTP and HTTPS URL associations and the .PDF file association.

    MS had to comply with EEA standards; to ensure a user’s right to choose a default browser for opening common links such as http and https, and PDF files, the driver was installed to make sure no one fiddled with a user’s decision [(e.g.) to set Firefox as the default browser]. In the past, there were times when Edge would change browser preference and open common links and/or PDF files in Edge instead of the user selected default browser.

    Now for the disparaging news; you can do all you want with the driver (User Choice Protection Driver), but it’s not going to change how MS/Windows opens content with its own Apps because “Apps choose how to open content on Windows, and some Microsoft apps will choose to open web content in Microsoft Edge. With the driver installed, MS is entitled to set the default browser as Edge for any Apps that it owns and maintains, but not for common http, https, PDF links.

    The grand MS coup d’état:

    If a user decides to remove the EEA protection by deleting or disabling the UCPD driver [it’s not a service], the user is then allowing MS/Windows to reset the default browser settings and PDF file settings in accordance with whatever MS deems appropriate which is what the EEA was wanting to avoid/stop/prohibit!

    In other words, disabling the User Choice Protection driver is exactly what MS wants tweakers to do. It gives back to MS the choice they had to give users in the EEA agreement.

    1. Bobo said on
      Reply

      I have removed Edge ages ago and blocked it’s install method, so no worries there. Sumatra PDF is all I need. The thing is: They shall NOT install any additional drivers on my machines without my consent. But yeah, like I suspected: this is all again connected to how they can sneak in Edge back on systems that don’t have it.

      1. Dan said on
        Reply

        Lack of imagination. You can respect user choice AND make it easy to script things TOO. All you need is something like, or even exactly, a UAC prompt. If you’re running something elevated, you are taking responsibility. Or it could be a specialized “This programming is changing your default… do you agree” Whatever. But that allows to share/deploy settings without making people reboot their computers first. In the end it’s a fairly arbitrary list of protected choices anyway. And then for the less protected ones, you can still change them with dism it seems, it’s just a lot more irritating than using the registry. Maybe they couldn’t find a way to protect the registry with UAC without starting over, or maybe that was true before UCPD. I would think if UCPD can intercept, it can also prompt, and they could apply it to all extensions and do away with the hash mess.

        I may have the details a little off, but some imagination definitely could have solved this without all the irritation.

    2. Boris said on
      Reply

      “Now for the disparaging news; you can do all you want with the driver (User Choice Protection Driver), but it’s not going to change how MS/Windows opens content with its own Apps”

      Who in the right mind would use MS Apps by choice? The Only MS Apps I kept (except for a few that are too embedded to be removed and needed for System maintenance) are Calculator and Paint because they are so simple to use and harmless. The first time I heard of OOAppBuster I got rid of all the MS Apps bloat and with MSEdgeReddirect I removed Edge. And without WindowsUpdate enabled, all of that is not coming back.

      As an educated consumer, it is your duty to declaw Microsoft to the maximum level. Of course, there will be some problems. I will need to install drivers manually for new peripherals in few years. But that a small price to pay for having almost Linux like freedom and privacy without actually switching to Linux.

  14. Doc Fuddled said on
    Reply

    Martin,
    Funny thing I just noticed. I had never heard “User Choice Protection Driver (UCPD), so I followed your instructions the letter and successfully changed my system settings.
    After reading this blog it dawned on me that your mis typing must have been automatically corrected by my dyslexic mis typing!

  15. Seeprime said on
    Reply

    The upside of this is that oddball browsers like AVG can’t silently replace your preference when someone clicks on the wrong thing. For once, I agree with this action, since it still allows a change in Settingsm

  16. John C. said on
    Reply

    Thanks very much for this article, Martin. I just installed a fresh copy of Windows 10 Pro on my desktop, moving from Windows 7. It’s bad enough having to beat the new version of Windows into submission so that I can use my computer, but this kind of thing squanders my life force. I detest the continual game of chess with Microsoft. Not sure if they inflicted this nonsense on tue EU, but if they did you can be assured that they won’t get away with it in that location.

  17. Tachy said on
    Reply

    Your a bit confused here.

    Just R-Click a file in explorer, choose “open with” then choose the program you want to use, and then click the “Always” button.

    Default is set. Just like an android phone.

    If you don’t see this option you may need to enable the “classic” context menus manually in Windows 11 as shown half way down this page https://winaero.com/how-to-enable-full-context-menus-in-windows-11/

    1. Anonymous said on
      Reply

      Precisely. People always looks for bad in things Microsoft introduce. In this case, stopping the fiddling is intended to work for our benefit.

      In my case, Thunderbird eventually fixed its self-screwed associations by itself (I face far more issues with Mozilla software than Windows 11).

  18. replace ms now said on
    Reply

    The company I work for decided 15 years ago to switch to all non-ms servers for all but those necessary for active directory. We are a private company that has over five thousand employees.

    In the past several years there have been numerous meetings about how to break away from MS completely.

    For the past 4 years been slowly replacing windows clients with linux. Last year, the last of the widows end user systems were replaced with customized linux systems, and last ms server was replaced.

    If we can do it you can do it. Change over to non-ms systems. Its not hard as lots of great non-ms software is avalible and valible, the linux interface is more and more non-tech user friendly, and easy to use.

    It was not a easy road and there were times when it looked like we were going back to ms, but it was and is possible.

  19. pHROZEN gHOST said on
    Reply

    Task Scheduler Library > Microsoft > AppxDeploymentClient

    Should be …

    Task Scheduler Library > Microsoft > Windows > AppxDeploymentClient

  20. John said on
    Reply

    Microsoft doing this all in the name of security, but clearly that is not their only intentions for doing this. I hope this get’s more mainstream attention.

  21. Anonymous said on
    Reply

    Thanks for the article Martin.

  22. Paul(us) said on
    Reply

    Thanks, Martin, Nice piece of information and also a great help on how to do it.

  23. Anonymous said on
    Reply

    Microsoft should be sued to the ground for messing with user choice. Thanks for the heads up. Removing this useless bloat.

  24. Benjamin said on
    Reply

    There is no res publica here, never was but we all like it that way…

    “The most essential characteristic of a res publica was liberty (libertas), which meant freedom from the arbitrary control of another and the absence of a monarchical domination over the body politic, that was analogous to the absolute power of a master over a slave.”

  25. Gavin B said on
    Reply

    Does this effect IrfanView file types?

  26. Belga said on
    Reply

    Thank you for this article Gunnar and Martin.
    I’ve been wondering for a while now where the difficulty in setting certain files/programs as default comes from (PDF, ZIP, 7z, Firefox).

  27. Bobo said on
    Reply

    Not too far-fetched to guess that this is microsofts revenge to the EU for letting users uninstall Edge. They try to fool people to reinstall it by sabotaging this feature for other browsers.

    1. Belga said on
      Reply

      @ Bobo
      No doubt, but that doesn’t explain the fact that it prevents you from modifying the default of certain files (Edge for PDF or Explorer for ZIP and 7z).
      This just shows that he is trying to put forward his own solutions in general.

      @Tom
      Although hesitant like you, I finally went from Win 8.1 to Win 11 21H2 by obligation (PC out of service), then 23H2 without going through 22H2 and still using a local account.
      After eliminating/disabling certain settings and using one or two little additional programs I still find myself with the same OS as before, except the applications from the Microsoft Store.
      I just retain the considerable loss of time to achieve this result.
      What will happen with Win 12… we’ll see!

    2. Tom Hawack said on
      Reply

      Could very well be, @Bobo, plausible, imaginable.

      Microsoft is increasingly reducing user choices and abilities, and not only with this new filter driver.

      Personally and consequently I increasingly fear choosing Windows 11, or 12 should it be (especially if what a technician told me is true, which is that installing Windows 12 without the Microsoft Account is bound to be strictly impossible whilst it is still possible, though with knowledge, with Windows 11). I’m as well and therefor considering a Linux distro as the OS to replace my Windows 7. As a novice of Linux I fear the new ecosystem, yet articles as hereafter reduce my doubts :

      “Thinking about switching to Linux? 10 things you need to know”
      [https://www.zdnet.com/article/thinking-about-switching-to-linux-things-you-need-to-know/]

      When I hear, read what is becoming of Microsoft, I hardly imagine using one of its latest OS, perceived not as an improved user experience but as an increased user imprisonment.

      1. Bobo said on
        Reply

        @Tom Hawack

        When a Microsoft account is mandatory for using a Windows computer, I won’t use a Windows computer. Very simple. There are many millions of stubborn people like me too… Every step Microsoft takes, alienates more and more users. I’m no businessman but even I understand that’s a bad move. It’s like they don’t have a clue that linux IS catching up very fast, they don’t see anything from their high monopoly-horse, everything is concentrated around trying to milk data from Microsoft account slaves. The day Nvidia releases good drivers for linux, it’s over for Microsoft, gamers will leave. That day WILL come.

  28. Anonymous said on
    Reply

    UCPD correctly
    UCDP incorrectly

  29. Carl said on
    Reply

    Just a correction to the steps to disable the task:
    Step 4 should be
    4. Use the sidebar to go to Task Scheduler Library > Microsoft > Windows > AppxDeploymentClient.

    Thanks for this information – it explains why one of my applications was randomly failing.
    Now I know what to do should a client have issues.
    MUCH appreciated!

  30. Gunnar Haslinger said on
    Reply

    Title of this article has a Typos. It says “UCDP” but it’s User Choice Protection Driver = UCPD.

    Thanks for citing me and my blog as source.

    best regards,
    Gunnar

    1. Martin Brinkmann said on
      Reply

      Thank you Gunnar, I corrected the spelling mistake. The link is well deserved!

Leave a Reply

By commenting, you accept our privacy policy and keep the discussion respectful and on topic.