Skip to content
Follow
Windows

Enable or Disable Microsoft Defender PUA Protection in Windows 11

Richard
Written by
Richard
Mar 18, 2026 Updated Oct 4, 2026 8 min read
Enable or Disable Microsoft Defender PUA Protection in Windows 11
Enable or Disable Microsoft Defender PUA Protection in Windows 11

This tutorial shows you how to turn Microsoft Defender’s protection against potentially unwanted applications (PUA) on or off in Windows 11. It covers five methods, from the simple Edge and Windows Security settings to PowerShell, Group Policy and the registry.

Advertisement
⚡ Quick Answer

Microsoft Defender PUA protection blocks potentially unwanted applications like adware and bundleware before they download or install. Enable it in Windows Security by opening App & browser control, clicking Reputation-based protection settings, and turning on Potentially unwanted app blocking.

Advertisement

What Are Potentially Unwanted Applications?

Microsoft Defender Antivirus blocks Potentially Unwanted Applications (PUAs). PUAs are not always classed as viruses, but they cause problems. Typical examples are programs that show intrusive ads or bundle extra software you did not ask for. Others slow your PC down. Defender detects these files before they download or install.

When PUA protection is set to block, Defender stops detected files from downloading , moving, running or installing . It moves blocked files to quarantine and shows a notification when it finds one.

Before You Start

Before you change any PUA setting, make sure you are signed in with an administrator account. Windows Security, PowerShell, Group Policy and the registry all need administrator rights. You may also see a User Account Control prompt. If a setting is greyed out, another security product or your organization’s policy is probably managing it.

You can check that PUA protection works by downloading a harmless test file from AMTSO. The file is designed to look like a potentially unwanted application. If your protection is active, Defender or Edge should block it and show a notification. If the file downloads without any warning, check your settings.

To download a test PUA file to check if your protection works: Feature Settings Check AMTSO | Detects Potentially Unwanted Applications (PUAs)

Advertisement

Learn more about PUA protection:

Option 1Microsoft Edge Settings

This method controls whether Microsoft Edge blocks potentially unwanted apps while you download them. It does not change how Defender scans files already on your PC.

  1. Open Microsoft Edge.
  2. Click the three dots menu (Settings and more) in the top right corner. You can also press Alt+F on your keyboard. A menu opens.
  3. Click Settings. The Settings page opens in a new tab.
  4. Click Privacy, search, and services in the left menu.
  5. Scroll down to the Security section and find Block potentially unwanted apps.
  6. Turn the toggle On (default) or Off, depending on what you want. The change applies straight away. You do not need to restart Edge or Windows.

If the toggle is greyed out or Edge says it is managed by your organization, a policy is controlling it. Change it through that policy instead.

micrsoft edge browser more option and settings
micrsoft edge browser more option and settings
Microsoft Defender blocking potentially unwanted applications
Microsoft Defender blocking potentially unwanted applications

You can turn this protection on or off directly in the Edge settings. Open Settings, go to Privacy, search, and services, and use the Block potentially unwanted apps toggle under Security. It only controls whether Edge blocks unwanted apps during downloads. To undo the change, flip the toggle back.

Advertisement

You can now close the Settings tab.

Option 2Windows Security App

This is the easiest method for most people. It uses the graphical Windows Security app and does not need a browser. It works on Windows 11 Home and Pro.

  1. Open Windows Security. Search for it in the Start menu and click the result.
  2. Click App & browser control on the left side.
  3. Click Reputation-based protection settings. The page lists several protections, including Potentially unwanted app blocking.
  4. Turn Potentially unwanted app blocking On (default) or Off. If a User Account Control prompt appears, click Yes.

When the setting is on, two checkboxes appear under it:

  • Block apps: Finds PUA that you have already downloaded or installed. This works in any browser.
  • Block downloads: Stops PUA while it downloads in Microsoft Edge.

You can turn each option on or off separately. For the strongest protection, leave both selected. If the toggle is greyed out, another antivirus program may be active, or a policy (Group Policy or the registry) may be managing the setting. You can now close Windows Security.

Advertisement
windows 11 app and browser control section windows security app
windows 11 app and browser control section windows security app
windows 11 reputation based protection settings updated
windows 11 reputation based protection settings updated
windows 11 smartscreen for potentially unwanted apps
windows 11 smartscreen for potentially unwanted apps

Option 3PowerShell Command

If you are comfortable with commands, you can set PUA protection from PowerShell with administrator rights. This sets the system-wide Defender setting. It does not change Edge's download blocking.

📝NoteThis method doesn't affect the Microsoft Edge download blocking setting.
  1. Open Windows Terminal as an administrator. Search for it in the Start menu, then click Run as administrator. Click Yes if User Account Control asks.
  2. Select Windows PowerShell from the dropdown if it is not already the open tab.
  3. Copy and paste one of the commands below and press Enter. The two commands in each pair are alternatives, so you only need to run one of them. If the command works, PowerShell returns to the prompt without an error message.

Turn off PUA protection (don't block apps):

⬛PowerShell
Set-MpPreference -PUAProtection 0

or

Advertisement
⬛PowerShell
Set-MpPreference -PUAProtection Disabled

Turn on PUA protection and block apps (default):

⬛PowerShell
Set-MpPreference -PUAProtection 1

or

⬛PowerShell
Set-MpPreference -PUAProtection Enabled

Audit Mode (detect PUA but don't block them):

⬛PowerShell
Set-MpPreference -PUAProtection 2

or

Advertisement
⬛PowerShell
Set-MpPreference -PUAProtection AuditMode

In Audit Mode, Defender records detections but lets the files run. It is useful for seeing what would be caught before you start blocking. To undo any of these changes, run the command for the setting you want back. You can check the result in Windows Security (Option Two). You can now close Windows Terminal.

Option 4Local Group Policy Editor

Windows 11 Pro, Enterprise and Education include the Local Group Policy Editor. It lets you set Defender's PUA detection as a policy. This method does not change the Microsoft Edge download blocking setting.

📝NoteLocal Group Policy Editor only works on Windows 11 Pro, Enterprise, and Education versions.

If you have Windows 11 Home, use Option Five instead.

Note: This method doesn't affect the Microsoft Edge download blocking setting.

Advertisement
  1. Open the Local Group Policy Editor. Press Windows key + R, type gpedit.msc, and press Enter. The editor opens.
  2. Navigate to this location in the left pane:
    💻Code
    Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus
  3. In the right pane, find and double-click Configure detection for potentially unwanted applications. A settings window opens.
  4. Choose one of the options below.

Always Block PUA (recommended):

  1. Select the dot next to Enabled.
  2. In the Options dropdown, select Block.
  3. Click OK.

Audit Mode (detect but don't block):

  1. Select the dot next to Enabled.
  2. In the Options dropdown, select Audit Mode.
  3. Click OK.

Always Disable PUA Protection:

  1. Select the dot next to Enabled.
  2. In the Options dropdown, select Disable.
  3. Click OK.

Allow Users to Change Settings (default):

  1. Select the dot next to Not Configured.
  2. Click OK.

Once a policy is set to Enabled, the matching setting in Windows Security may show as managed by your organization. To hand control back to users, set the policy to Not Configured. You can now close the Local Group Policy Editor.

Group Policy settings for detecting potentially unwanted applications
Group Policy settings for detecting potentially unwanted applications
Options for configuring detection of unwanted applications
Options for configuring detection of unwanted applications

Option 5Registry Editor

You can also control PUA protection by editing the Windows Registry. This works on every edition, including Windows 11 Home. It is an advanced method and needs administrator access. A wrong registry change can cause problems, so create a restore point or back up the registry first. For example, this command always blocks PUAs: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v PUAProtection /t REG_DWORD /d 1 /f. This registry edit does not affect Edge's download blocking.

Note: This method doesn't affect the Microsoft Edge download blocking setting.

  1. Open Windows Terminal or Command Prompt as an administrator.
  2. Copy and paste the command for the option you want from the list below, then press Enter.
  3. Check that the command reports success. If you see an access-denied error, the window is not running as administrator.

Always Block PUA:

🗝️Registry
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v PUAProtection /t REG_DWORD /d 1 /f

Audit Mode (detect but don't block):

🗝️Registry
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v PUAProtection /t REG_DWORD /d 2 /f

Always Disable PUA Protection:

🗝️Registry
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v PUAProtection /t REG_DWORD /d 0 /f

Allow Users to Change Settings (default):

🗝️Registry
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v PUAProtection /f

To go back, run the command for the setting you want. The default option returns control to the user. These values work like the Group Policy settings in Option Four, so Windows Security may show the setting as managed.

Summary

Microsoft Defender helps protect your PC from potentially unwanted applications that slow it down or show unwanted ads. You can manage this protection with Microsoft Edge settings or the Windows Security app. More advanced users can use PowerShell, the Local Group Policy Editor or the Registry Editor.

  • Option One uses Microsoft Edge settings (easiest for Edge users)
  • Option Two uses the Windows Security app (simple graphical interface)
  • Option Three uses PowerShell commands (for advanced users)
  • Option Four uses Group Policy Editor (Windows Pro/Enterprise only)
  • Option Five uses Registry Editor (for all Windows versions)

For most users, Option Two (Windows Security) is the easiest method. You can choose to block apps, block downloads, or both. You can also use Audit Mode to test PUA detection without blocking anything. Remember that you need administrator access to make these changes. If you used a policy or registry method, remember that it can override what you see in Windows Security.

Have a question about this guide?

Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.

Tags: #Windows 11

Did this guide fix your problem?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *