Microsoft Defender basics on Windows Server

Check Defender is running, update signatures, scan from PowerShell, and use exclusions only where a vendor recommends them.

  • Beginner
  • Windows VPS · Admin RDP
  • 2 min read

By RunRacks Team · Published

Microsoft Defender Antivirus is built into Windows Server 2016 and later and into Windows 10/11. It is turned on by default, updates itself through Windows Update and is enough for most servers. Here is how to check it and use it well.

Check that Defender is running

PowerShell
Get-MpComputerStatus | Select-Object AMServiceEnabled, AntivirusEnabled, RealTimeProtectionEnabled, AntivirusSignatureLastUpdated

All three Enabled values should be True, and the signature date should be recent. On a server with a desktop you can also open Windows Security → Virus & threat protection.

Update signatures and scan

PowerShell
Update-MpSignature
Start-MpScan -ScanType QuickScan

Use -ScanType FullScan for a complete scan. It takes much longer and uses more CPU, so run it outside busy hours.

See anything Defender has found:

PowerShell
Get-MpThreatDetection

Use exclusions carefully

Real-time scanning can slow down programs that write many small files, such as databases or build tools. Software vendors sometimes recommend excluding specific folders:

PowerShell
Add-MpPreference -ExclusionPath "D:\Data\SQL"
Get-MpPreference | Select-Object -ExpandProperty ExclusionPath

Do you need another antivirus?

Usually not. If you install another antivirus product, Defender switches itself to passive mode on Windows 10/11. On Windows Server it does not always do this, so follow the other product's instructions to avoid two real-time scanners fighting over the same files.

Troubleshooting

  • A trusted program was quarantined: open Windows Security → Protection history, check the item, and restore it only if you are certain it is safe.
  • High CPU from "Antimalware Service Executable": usually a scan in progress; let it finish, or check Check CPU, RAM and disk use on Windows.

Next steps

Was this guide helpful?

Still stuck?

Ask RunRacks AI for a quick answer, or open a ticket and our team will take a look at your server.

Security

Check the Windows Firewall rule for RDP port 12230

Find and verify the inbound TCP 12230 rule that lets Remote Desktop reach your RunRacks server, recreate it if it was deleted and scope it without locking yourself out.

  • Intermediate
  • Windows VPS · Admin RDP
  • 5 min read

Security

iptables basics: list, allow, drop and save rules

Learn how iptables chains and rule order work, then build a small ruleset that allows SSH and web traffic, drops everything else and can be edited by line number.

  • Intermediate
  • Linux VPS
  • 6 min read