Focused workstation utility and PowerShell toolkit for managing Microsoft Defender real-time protection, SmartScreen reputation prompts, and developer folder exclusions without hunting through buried Group Policy trees.
Built for local lab machines, compile servers, and gaming rigs where aggressive real-time scanning stalls builds or flags unsigned tools. Every change is reversible with a single toggle.
| Control Module | Target Component | Reversible |
|---|---|---|
| Real-Time Monitor Switch | MsMpEng.exe live file-access hooks |
Yes |
| Path & Process Exclusions | Dev workspaces, build outputs, mod loaders | Yes |
| SmartScreen Gate | App and browser reputation filter | Yes |
| Tamper Check Helper | Status audit before applying policy edits | Yes |
# Add a local build directory to Defender exclusions
Add-MpPreference -ExclusionPath "D:\builds\workspace"
# Inspect current real-time protection status
Get-MpComputerStatus | Select-Object RealTimeProtectionEnabled, IsTamperProtected
- Run the launcher with Administrator privileges so policy queries return accurate state.
- If Tamper Protection is locked in Security Center, disable it manually first before toggling real-time monitoring.
- Prefer targeted folder exclusions over a full antivirus shutdown on daily-driver machines.
- Click Restore Defaults at any time to re-enable standard Microsoft Defender protection and clear custom rules.