How to change registry key value for Tamper Protection in windows defender

Prachi Sharma 11 Reputation points
2021-07-22T05:04:50.837+00:00

Hi, I am unable to change a registry key value to disable Tamper protection in Windows, getting an "access denied" error.

The registry key is: "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Features\TamperProtection"

I have tried to change the ownership, but I am still getting an "Access denied" error if I try to take full control of the key.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,734 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,932 questions
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Prachi Sharma 11 Reputation points
    2021-07-22T08:55:00.603+00:00

    Hi,
    Thank you for your reply.

    The OS version is 2004. The build is 19041.928.

    I have also tried OS version 20H2.

    I was trying to modify the registry key via registry editor (In administrator mode).

    I have followed the steps provided but was not able to take ownership of the registry key.
    It gives the following error:
    117043-1.png

    1 person found this answer helpful.
    0 comments No comments

  2. Prachi Sharma 11 Reputation points
    2021-07-22T10:29:40.537+00:00

    Thank you for your quick confirmation.

    I was doing this because I wanted to run windows defender scans programmatically.

    Users should have options to choose actions for infected files like quarantine or remove or report only.

    Hence relevant registry values have been modified through code:
    "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Threats\ThreatSeverityDefaultAction"

    But then later I understood that this Tamper Protection is ignoring the changes made for that reg entry.

    Can you suggest something over this?
    Because users won't be able to modify the things manually from GUI and intune also not a proper fit here.

    1 person found this answer helpful.

  3. Candy Luo 12,711 Reputation points Microsoft Vendor
    2021-07-22T08:11:42.363+00:00

    Hi ,

    Before we go further, I would like to confirm the following questions:

    1.What's the OS version of your windows 10? 1909 or 20H2?

    2.How did you modify the registry key? Via PowerShell or Registry Editor?

    3.Have you taken ownership the key and give the account full control permission?

    In my lab(OS version is 1909), I have gain full permission to edit registry key and it works fine. As picture below:

    117015-2.png

    117034-1.png

    Best Regards,
    Candy


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  4. Candy Luo 12,711 Reputation points Microsoft Vendor
    2021-07-22T09:54:07.7+00:00

    Hi ,

    Thanks for clarify more details.

    I have tested in my lab with 20H2 OS version and found the same error message: Unable to set new owner on Features. Access is denied.

    Based on my research, it seems that for newer windows 10 OS version (e.g. 2004 and later), we need to manually change it or use Intune to change it in bulk.

    For your reference:

    How do you enable Tamper Protection via powershell / cmd / registry?

    How can I turn tamper protection on/off?

    117065-1.png

    Best Regards,
    Candy

    --------------------------------------------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  5. S.Sengupta 19,741 Reputation points MVP
    2023-01-28T04:26:24.3533333+00:00

    Try the same in Safe mode.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.