Open in the explorer

Configure detection for potentially unwanted applications

Configurer la détection pour les applications potentiellement indésirables

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Microsoft Defender Antivirus FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Antivirus Microsoft Defender
Supported on
At least Windows Server 2016, Windows 10 Version 1607 FR: Windows Server 2016, Windows 10 version 1607 ou versions supérieures
ADMX file
WindowsDefender.admx
Internal name
WindowsDefender/Root_PUAProtection

Explanation

Enable or disable detection for potentially unwanted applications. You can choose to block, audit, or allow when potentially unwanted software is being downloaded or attempts to install itself on your computer.

Enabled:
Specify the mode in the Options section:
-Block: Potentially unwanted software will be blocked.
-Audit Mode: Potentially unwanted software will not be blocked, however if this feature would have blocked access if it were set to Block, then a record of the event will be in the event logs.

Disabled:
Potentially unwanted software will not be blocked.

Not configured:
Same as Disabled.

French text from Windows 11 26H2

Activer ou désactiver la détection pour les applications potentiellement indésirables. Vous pouvez choisir de bloquer, d'auditer ou d'autoriser lorsque des logiciels potentiellement indésirables sont téléchargés ou tentent de s'installer sur votre ordinateur.

Activé :
Spécifiez le mode dans la section Options :
-Bloquer : les logiciels potentiellement indésirables seront bloqués.
-Mode d'audit : les logiciels potentiellement indésirables ne seront pas bloqués, mais si cette fonctionnalité avait bloqué l'accès si elle était définie sur Bloquer, un enregistrement de l'événement figurerait dans les journaux des événements.

Désactivé :
Les logiciels potentiellement indésirables ne seront pas bloqués.

Non configuré :
Identique à Désactivé.

Use cases

Turns on detection of potentially unwanted applications (adware, bundlers, evasion tools): in block mode they are quarantined; in audit mode they are only logged (event 1160). Audit mode is for measuring impact before enforcing, for example during a software compliance review.

If a business tool triggers a false positive, add a targeted exclusion rather than disabling the protection.

Microsoft source: Detect and block potentially unwanted applications

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender
Value name
PUAProtection
StateValue written
Enablednot defined in the ADMX (see the options below)
Disablednot defined in the ADMX (see the options below)

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: WindowsDefender/Root_PUAProtection
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'PUAProtection' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)
#
# Possible options:
#   Disable (Default) = 0
#   Block = 1
#   Audit Mode = 2
Set-ItemProperty -Path $k -Name 'PUAProtection' -Value 0 -Type DWord

Disable

# Disable: WindowsDefender/Root_PUAProtection
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'PUAProtection' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": WindowsDefender/Root_PUAProtection
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender'
Remove-ItemProperty -Path $k -Name 'PUAProtection' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Root_PUAProtectionDrop-down listenumPUAProtectionREG_DWORD
Required · Default choice (UI): #0
LabelValue
Disable (Default)REG_DWORD = 0
BlockREG_DWORD = 1
Audit ModeREG_DWORD = 2

Availability

Windows 10

✓ 22H2✓ 21H2✓ 21H1✓ 20H2✓ 2004✓ 1909✓ 1903✓ 1809— 1803— 1709— 1703— 1607— 1511— 1507

Windows Server