Open in the explorer

Configure Controlled folder access

Configurer le contrôle d'accès aux dossiers

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Microsoft Defender Antivirus › Microsoft Defender Exploit Guard › Controlled Folder Access FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Antivirus Microsoft Defender › Microsoft Defender Exploit Guard › Dispositif d’accès contrôlé aux dossiers
Supported on
At least Windows Server 2016, Windows 10 Version 1709 FR: Windows Server 2016, Windows 10 version 1709 ou versions supérieures
ADMX file
WindowsDefender.admx
Internal name
WindowsDefender/ExploitGuard_ControlledFolderAccess_EnableControlledFolderAccess

Explanation

Enable or disable controlled folder access for untrusted applications. You can choose to block, audit, or allow attempts by untrusted apps to:
- Modify or delete files in protected folders, such as the Documents folder
- Write to disk sectors

You can also choose to only block or audit writes to disk sectors while still allowing the modification or deletion of files in protected folders.

Microsoft Defender Antivirus automatically determines which applications can be trusted. You can add additional trusted applications in the Configure allowed applications GP setting.
Default system folders are automatically protected, but you can add folders in the Configure protected folders GP setting.

Block:
The following will be blocked:
- Attempts by untrusted apps to modify or delete files in protected folders
- Attempts by untrusted apps to write to disk sectors
The Windows event log will record these blocks under Applications and Services Logs > Microsoft > Windows > Windows Defender > Operational > ID 1123.

Disabled:
The following will not be blocked and will be allowed to run:
- Attempts by untrusted apps to modify or delete files in protected folders
- Attempts by untrusted apps to write to disk sectors
These attempts will not be recorded in the Windows event log.

Audit Mode:
The following will not be blocked and will be allowed to run:
- Attempts by untrusted apps to modify or delete files in protected folders
- Attempts by untrusted apps to write to disk sectors
The Windows event log will record these attempts under Applications and Services Logs > Microsoft > Windows > Windows Defender > Operational > ID 1124.

Block disk modification only:
The following will be blocked:
- Attempts by untrusted apps to write to disk sectors
The Windows event log will record these attempts under Applications and Services Logs > Microsoft > Windows > Windows Defender > Operational > ID 1123.

The following will not be blocked and will be allowed to run:
- Attempts by untrusted apps to modify or delete files in protected folders
These attempts will not be recorded in the Windows event log.

Audit disk modification only:
The following will not be blocked and will be allowed to run:
- Attempts by untrusted apps to write to disk sectors
- Attempts by untrusted apps to modify or delete files in protected folders
Only attempts to write to protected disk sectors will be recorded in the Windows event log (under Applications and Services Logs > Microsoft > Windows > Windows Defender > Operational > ID 1124).
Attempts to modify or delete files in protected folders will not be recorded.

Not configured:
Same as Disabled.

French text from Windows 11 26H2

Active ou désactive l’accès contrôlé aux dossiers pour les applications non approuvées. Vous pouvez choisir de bloquer, d’auditer ou d’autoriser les tentatives par des applications non approuvées pour :
- modifier ou supprimer des fichiers dans des dossiers protégés, tels que le dossier Documents ;
- écrire dans des secteurs de disque.

Vous pouvez également choisir de ne bloquer ou n’auditer que les écritures dans des secteurs de disque tout en permettant la modification ou la suppression de fichiers dans des dossiers protégés.

L’antivirus Microsoft Defender détermine automatiquement les applications qui peuvent être approuvées. Vous pouvez ajouter des applications approuvées dans le paramètre de stratégie de groupe Configurer des applications approuvées.
Les dossiers système par défaut sont automatiquement protégés, mais vous pouvez ajouter des dossiers dans le paramètre de stratégie de groupe Configurer des dossiers protégés.

Bloquer :
Les opérations suivantes sont bloquées :
- Tentatives par des applications non approuvées de modifier ou supprimer des fichiers dans des dossiers protégés
- Tentatives par des applications non approuvées d’écrire dans des secteurs de disque
Le journal des événements Windows enregistre ces blocages sous Journaux des applications et des services > Microsoft > Windows > Windows Defender > Opérationnel > ID 1123.

Désactivé :
Les opérations suivantes ne sont pas bloquées et sont autorisées à s’exécuter :
- Tentatives par des applications non approuvées de modifier ou supprimer des fichiers dans des dossiers protégés
- Tentatives par des applications non approuvées d’écrire dans des secteurs de disque
Ces tentatives ne sont pas enregistrées dans le journal des événements Windows.

Mode audit :
Les opérations suivantes ne sont pas bloquées et sont autorisées à s’exécuter :
- Tentatives par des applications non approuvées de modifier ou supprimer des fichiers dans des dossiers protégés
- Tentatives par des applications non approuvées d’écrire dans des secteurs de disque
Le journal des événements Windows enregistre ces tentatives sous Journaux des applications et des services > Microsoft > Windows > Windows Defender > Opérationnel > ID 1124.

Bloquer la modification du disque uniquement :
Les opérations suivantes sont bloquées :
- Tentatives par des applications non approuvées d’écrire dans des secteurs de disque
Le journal des événements Windows enregistre ces tentatives sous Journaux des applications et des services > Microsoft > Windows > Windows Defender > Opérationnel > ID 1123.

Les opérations suivantes ne sont pas bloquées et sont autorisées à s’exécuter :
- Tentatives par des applications non approuvées de modifier ou supprimer des fichiers dans des dossiers protégés
Ces tentatives ne sont pas enregistrées dans le journal des événements Windows.

Auditer la modification du disque uniquement :
Les opérations suivantes ne sont pas bloquées et sont autorisées à s’exécuter :
- Tentatives par des applications non approuvées d’écrire dans des secteurs de disque
- Tentatives par des applications non approuvées de modifier ou supprimer des fichiers dans des dossiers protégés
Seules les tentatives d’écrire dans des secteurs de disque protégés sont enregistrées dans le journal des événements Windows (sous Journaux des applications et des services > Microsoft > Windows > Windows Defender > Opérationnel > ID 1124).
Les tentatives de modification ou de suppression des fichiers dans des dossiers protégés ne sont pas enregistrées.

Non configuré :
Identique à Désactivé.

Use cases

Controlled folder access protects documents from ransomware by preventing untrusted applications from modifying them. The setting offers block, audit, or protecting only disk writes; you must choose Enabled and then Block for full protection.

Start in audit mode to identify legitimate applications to allow (allowed applications list), then switch to block. Otherwise business tools that write to Documents may be blocked.

Microsoft source: Enable controlled folder access

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access
Value name
EnableControlledFolderAccess
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/ExploitGuard_ControlledFolderAccess_EnableControlledFolderAccess
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access'
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 'EnableControlledFolderAccess' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)
# Configure the guard my folders feature
# Possible options:
#   Disable (Default) = 0
#   Block = 1
#   Audit Mode = 2
#   Block disk modification only = 3
#   Audit disk modification only = 4
Set-ItemProperty -Path $k -Name 'EnableControlledFolderAccess' -Value 0 -Type DWord

Disable

# Disable: WindowsDefender/ExploitGuard_ControlledFolderAccess_EnableControlledFolderAccess
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access'
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 'EnableControlledFolderAccess' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": WindowsDefender/ExploitGuard_ControlledFolderAccess_EnableControlledFolderAccess
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access'
Remove-ItemProperty -Path $k -Name 'EnableControlledFolderAccess' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Configure the guard my folders featureConfiguration de la fonctionnalité de protection des dossiersExploitGuard_ControlledFolderAccess_EnableControlledFolderAccessDrop-down listenumEnableControlledFolderAccessREG_DWORD
Required · Default choice (UI): #0
LabelValue
Disable (Default)REG_DWORD = 0
BlockREG_DWORD = 1
Audit ModeREG_DWORD = 2
Block disk modification onlyREG_DWORD = 3
Audit disk modification onlyREG_DWORD = 4

Availability

Windows Server