Configure detection for potentially unwanted applications
Configurer la détection pour les applications potentiellement indésirables
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.
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
| State | Value written |
|---|---|
| Enabled | not defined in the ADMX (see the options below) |
| Disabled | not 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 DWordDisable
# 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 SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Root_PUAProtection | Drop-down listenum | PUAProtection | REG_DWORD | Required · Default choice (UI): #0
|