Konfiguruj kontrolowany dostęp do folderu: wartość rejestru EnableControlledFolderAccessKomputerHKLM\Software\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access
- Identyfikator zasady
- ExploitGuard_ControlledFolderAccess_EnableControlledFolderAccess
- Zakres
- Konfiguracja komputera
- Obsługiwane w systemach
- Co najmniej Windows Server 2016 lub Windows 10 w wersji 1709
- Źródło
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (wersja 1.0)
- Kategoria
- Składniki systemu Windows › Program antywirusowy Microsoft Defender › Microsoft Defender Exploit Guard › Kontrolowany dostęp do folderu
Rejestr
EnableControlledFolderAccess
-KomputerEnableControlledFolderAccess
REG_DWORDKomputerHKLM\Software\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access Bieżący klucz
- Wartość włączona
- Zależy od wartości opcji
- Element
- Konfiguruj funkcję ochrony folderów
| Pozycja | Zapisana wartość |
|---|---|
| Wyłącz (domyślne) | 0 |
| Zablokuj | 1 |
| Tryb inspekcji | 2 |
| Blokuj tylko modyfikacje dysku | 3 |
| Poddawaj inspekcji tylko modyfikacje dysku | 4 |
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access] ; Opcje (użyj tylko jednej) ; Wyłącz (domyślne) "EnableControlledFolderAccess"=dword:00000000 ; Zablokuj "EnableControlledFolderAccess"=dword:00000001 ; Tryb inspekcji "EnableControlledFolderAccess"=dword:00000002 ; Blokuj tylko modyfikacje dysku "EnableControlledFolderAccess"=dword:00000003 ; Poddawaj inspekcji tylko modyfikacje dysku "EnableControlledFolderAccess"=dword:00000004
CMD
:: Opcje (użyj tylko jednej) :: Wyłącz (domyślne) reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access" /v "EnableControlledFolderAccess" /t REG_DWORD /d 0 /f :: Zablokuj reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access" /v "EnableControlledFolderAccess" /t REG_DWORD /d 1 /f :: Tryb inspekcji reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access" /v "EnableControlledFolderAccess" /t REG_DWORD /d 2 /f :: Blokuj tylko modyfikacje dysku reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access" /v "EnableControlledFolderAccess" /t REG_DWORD /d 3 /f :: Poddawaj inspekcji tylko modyfikacje dysku reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access" /v "EnableControlledFolderAccess" /t REG_DWORD /d 4 /f
PowerShell
# Wspólne: utwórz klucz New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access' -Force | Out-Null # Opcje (użyj tylko jednej) # Wyłącz (domyślne) New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access' -Name 'EnableControlledFolderAccess' -PropertyType DWord -Value 0 -Force | Out-Null # Zablokuj New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access' -Name 'EnableControlledFolderAccess' -PropertyType DWord -Value 1 -Force | Out-Null # Tryb inspekcji New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access' -Name 'EnableControlledFolderAccess' -PropertyType DWord -Value 2 -Force | Out-Null # Blokuj tylko modyfikacje dysku New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access' -Name 'EnableControlledFolderAccess' -PropertyType DWord -Value 3 -Force | Out-Null # Poddawaj inspekcji tylko modyfikacje dysku New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access' -Name 'EnableControlledFolderAccess' -PropertyType DWord -Value 4 -Force | Out-Null