Disabling Windows Security Features
Official Documentation & Setup Guide
Only disable these if specifically instructed by support. These are security features that protect your system.
Disabling Exploit Protection
Quick Method (Per-Program)
- Press
Windows + I→ Privacy & Security → Windows Security - Click "App & Browser control" → "Exploit protection settings"
- Click "Program settings" → "Add program to customize"
- Choose "Add by program name"
- Enter program name (e.g.,
loader.exe) - Disable all protections for that program
System-Wide Disable (PowerShell)
Set-ProcessMitigation -System -Disable CFG,DEP,ASLR,SEHOP,StrictHandle
Disabling Control Flow Guard (CFG)
Registry Method:
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v EnableCfg /t REG_DWORD /d 0 /f
Restart required after this change.
Disabling DEP (Data Execution Prevention)
bcdedit.exe /set {current} nx AlwaysOffRestart required.
Quick Disable Script
Run PowerShell as Administrator:
# Backup current settings Get-ProcessMitigation -System > "C:\security_backup.xml" # Disable protections Set-ProcessMitigation -System -Disable CFG,DEP,ASLR,SEHOP,StrictHandle # Registry changes reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v EnableCfg /t REG_DWORD /d 0 /f reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v MoveImages /t REG_DWORD /d 0 /f # Disable DEP bcdedit.exe /set {current} nx AlwaysOffVerify Changes
Check CFG:
Get-ProcessMitigation -System | Select CFG
Check DEP:
bcdedit.exe /enum {current} | findstr nxRestore Security Features
From backup:
Set-ProcessMitigation -PolicyFilePath "C:\security_backup.xml"
Reset to defaults:
Set-ProcessMitigation -System -Reset
- Create system restore point before changes
- Restart PC after making changes
- Windows Updates may re-enable features
- Only disable if absolutely necessary