Protect Windows Defender Server: 7 Key Steps
In this article
To protect Windows Defender on a server, you need to harden its configuration, keep definitions updated, and integrate it with other security layers. This guide walks you through the essential steps to secure Defender against tampering and ensure it actively protects your server. You'll need administrative access to the server and, ideally, a test maintenance window.
What You'll Need
- Administrator (or equivalent) access to the Windows Server.
- A maintenance window (to reboot if required).
- Access to Group Policy Management Console (GPMC) or Local Group Policy Editor (gpedit.msc) if not using Intune.
- PowerShell (as administrator) for some steps.
Step-by-Step
- Enable Tamper Protection. Tamper Protection prevents malware and unauthorized users from changing security settings. On Windows Server 2022 and later, go to Settings > Privacy & Security > Windows Security > Virus & threat protection > Manage settings and toggle Tamper Protection to On. If you manage servers via Intune, enable it through the endpoint security policy. Note: Tamper Protection is not available on older Server versions (2016/2019) — use Group Policy to restrict changes instead.
- Configure Cloud-Delivered Protection and Automatic Sample Submission. In the same settings page, turn on Cloud-Delivered Protection and set Automatic Sample Submission to On (or at least 'Send safe samples'). This allows Defender to use cloud intelligence and submit suspicious files for analysis, improving detection.
- Set Up Attack Surface Reduction (ASR) Rules. ASR rules block common attack techniques. Use Group Policy or Intune to enable rules like 'Block executable files from running unless they meet a prevalence, age, or trusted list criterion' and 'Block Office applications from creating child processes'. Start with Audit mode to see what would be blocked, then switch to Block after a week.
- Schedule Regular Scans and Keep Definitions Updated. Open Task Scheduler and create a task to run
MpCmdRun.exe -Scan -ScanType 2weekly. Also, set Windows Update to install Defender definition updates automatically — you can force an update withUpdate-MpSignaturein PowerShell. - Enable Network Protection. Network Protection blocks outbound connections to malicious IPs/domains. In Group Policy, go to Computer Configuration > Administrative Templates > Windows Components > Windows Defender Antivirus > Network Protection System and set Enable Network Protection to Enabled (Block mode). This works on Windows 10/11 and Server 2022+.
- Restrict Local Admin Rights and Use Controlled Folder Access. Ensure only authorized users are local admins. Also, enable Controlled Folder Access to protect critical folders (like
C:\andC:\Windows) from ransomware. In Group Policy, under Windows Defender Antivirus > Windows Defender Exploit Guard > Controlled Folder Access, set it to Enabled and add protected folders. - Monitor and Audit Defender Events. Use Event Viewer to monitor Defender events (Event ID 1116, 1117, 5001, etc.). Forward these to a SIEM or set up alerts. In PowerShell, run
Get-MpThreatDetectionto review recent detections.
Common Mistakes
- Disabling Tamper Protection for convenience. This opens the door for malware to turn off protections. Keep it on unless absolutely necessary.
- Ignoring ASR rules in audit mode. Leaving them in audit mode gives no protection. After a test period, switch to block.
- Not updating definitions regularly. Stale definitions miss new threats. Automate updates.
- Overlooking network protection. Many admins don't enable it, leaving a gap in outbound threat blocking.
- Granting local admin to too many users. This weakens all security controls.
Tips
- Use Group Policy to enforce settings across all servers in your environment — this ensures consistency.
- Periodically run
Get-MpComputerStatusto verify Tamper Protection is on and definitions are current. - Test ASR rules in a staging environment first to avoid breaking legitimate applications.
- Combine Defender with other security tools like Windows Firewall and application whitelisting for defense in depth.
Troubleshooting
If Tamper Protection is grayed out or cannot be enabled: This can happen if the server is managed by Intune or Group Policy. Check the policy settings — if a policy sets Tamper Protection to disabled, it will override local settings. Ensure the policy is not conflicting.
If ASR rules block legitimate software: Review the audit logs to identify the rule and the executable. Add an exclusion for that specific file or folder in the ASR rule settings, but only after verifying it's safe.
If Defender definitions fail to update: Check network connectivity to Microsoft Update servers. Try running Update-MpSignature manually. If it fails, reset Windows Update components or check proxy settings.
If Network Protection causes connectivity issues: Some legitimate apps might be blocked. Check the event logs for the blocked connection, then add an allowed IP/domain exception in the policy.
Frequently Asked Questions
Can I use Windows Defender on a Server Core installation?
Yes, Windows Defender is included in Server Core, but you manage it via PowerShell or Group Policy. The GUI settings are not available, but all features work.
Does Tamper Protection work on Windows Server 2016?
No, Tamper Protection is only available on Windows 10/11 and Windows Server 2022 and later. For older servers, use Group Policy to restrict who can change Defender settings.
Will ASR rules affect server performance?
ASR rules have minimal performance impact, but they can block legitimate actions. That's why audit mode is recommended first.
How often should I run a full scan?
For servers, a weekly full scan is a good baseline. You can also run quick scans daily if needed.
Can I exclude certain folders from scans to improve performance?
Yes, but be cautious. Only exclude folders that are known safe and high-traffic (like database files). Exclusions can be exploited by malware, so keep them minimal.
What is the difference between Cloud-Delivered Protection and Automatic Sample Submission?
Cloud-Delivered Protection checks files against Microsoft's cloud intelligence in real-time. Automatic Sample Submission sends suspicious files to Microsoft for analysis. Both enhance detection, but they work separately.