Windows Server · Lesson 07

Microsoft Defender Antivirus

Review Defender health, real-time protection, security intelligence, exclusions, detections, and scan evidence without disrupting required server workloads.

Defender is not just an on/off switch. Strong review means understanding what is protected, what is excluded, what was detected, and how any remediation affects the server's job.

Lesson Snapshot

Core concepts6
Primary toolWindows Security
CLIDefender PowerShell
GoalHealthy + evidence-aware

Learning objectives

What this lesson should help you do

01

Review Microsoft Defender Antivirus health and protection state on Windows Server.

02

Use Windows Security, PowerShell, and event evidence to inspect Defender without changing settings blindly.

03

Understand the difference between protection status, signatures, scans, exclusions, detections, and remediation.

04

Recognize why exclusions and disabled protections deserve careful investigation.

05

Preserve detection evidence before removing files or changing security settings.

06

Verify that required server roles and applications still function after Defender-related changes.

Core concepts

Understand what Defender is telling you

Protection state

Whether Defender Antivirus and related protections are enabled and functioning on the server.

Security intelligence

The malware definitions and detection data Defender uses to identify threats.

Scan

A Defender inspection of files, memory, processes, or selected locations for suspicious content.

Exclusion

A file, folder, process, or extension that Defender is instructed to skip. Exclusions can be legitimate or risky.

Detection

A Defender finding that indicates suspicious or malicious content was identified.

Remediation

The action Defender or an administrator takes after a detection, such as quarantine, removal, or allowing an item.

Core idea

Healthy protection means more than "Defender is installed"

Real-time protection, signatures, exclusions, detections, and event evidence all contribute to Defender's actual security state.

Evidence warning

Preserve detections before cleanup

Threat names, file paths, timestamps, actions, and Defender events can help explain what happened.

Record the evidence before deleting files, clearing history, or changing exclusions.

Tool map

Exactly where to review Defender

Windows Security

Start → Windows Security → Virus & threat protection

Review overall antivirus status, current threats, scan options, and protection information when the Windows Security interface is available.

Protection history

Windows Security → Virus & threat protection → Protection history

Review prior detections and actions. Preserve details before clearing or remediating suspicious items.

Manage settings

Windows Security → Virus & threat protection → Virus & threat protection settings → Manage settings

Review real-time protection and related settings. Do not toggle protection casually on a server.

Protection updates

Windows Security → Virus & threat protection → Virus & threat protection updates → Protection updates

Review security-intelligence version and update status.

Event Viewer

Event Viewer → Applications and Services Logs → Microsoft → Windows → Windows Defender → Operational

Provides detailed Defender events useful for detection, remediation, and troubleshooting.

PowerShell

Start → search PowerShell → Run as administrator when required

Use Get-MpComputerStatus, Get-MpPreference, Get-MpThreat, Get-MpThreatDetection, and Update-MpSignature for inspection and controlled maintenance.

Health signals

Six areas that define Defender health

Antivirus enabled

Confirm Defender Antivirus is actually active unless the scenario explicitly uses another required security product.

Real-time protection

Real-time protection should be reviewed because disabling it weakens immediate file and process inspection.

Security intelligence current

Outdated definitions can reduce Defender's ability to recognize newer threats.

Recent scan state

Check whether recent scans completed successfully and whether any scan produced detections.

Threat history

Review detections and remediation state before changing suspicious files or exclusions.

Exclusions

Inspect every exclusion carefully because exclusions can create intentional blind spots.

PowerShell inspection

Confirm the GUI with Defender cmdlets

Defender health

Get-MpComputerStatus

Shows antivirus, real-time protection, engine, signature, and scan-status information.

Defender preferences

Get-MpPreference

Reviews configured Defender settings, including exclusions and protection preferences.

Known threats

Get-MpThreat

Lists known threat records maintained by Defender.

Threat detections

Get-MpThreatDetection

Shows detailed Defender detection records and can provide useful evidence before remediation.

Signature version

Get-MpComputerStatus | Select-Object AntivirusSignatureVersion, AntivirusSignatureLastUpdated, AntispywareSignatureVersion

Provides a concise check of Defender security-intelligence freshness.

Exclusion review

Get-MpPreference | Select-Object ExclusionPath, ExclusionProcess, ExclusionExtension

Surfaces file, process, and extension exclusions for review.

Exclusion review

Every exclusion should have a reason

Path exclusions

Does the excluded folder contain required application data, or is the exclusion unnecessarily broad?

Process exclusions

Is the excluded executable tied to a required application, and is the exact path known?

Extension exclusions

Does excluding an entire file type create a larger blind spot than necessary?

Temporary exclusions

Was the exclusion added for troubleshooting and never removed?

Vendor-required exclusions

Is there documented evidence that a required server application needs the exclusion?

Suspicious exclusions

Was the exclusion added around a suspicious path, script folder, or unusual executable?

Threat evidence

What to preserve before remediation

Threat name

Record Defender's detection name exactly as shown.

Detection time

Record when the item was detected to help correlate it with logs or other activity.

Affected path

Record the file, process, archive, or location associated with the detection.

Action status

Note whether Defender quarantined, removed, blocked, allowed, or failed to remediate the item.

User or process context

When available, identify what user or process was associated with the detection.

Related events

Check Defender Operational logs and other relevant logs for corroborating evidence.

Scan strategy

Choose the least disruptive scan that answers the question

Quick scan

Checks common threat locations and active areas. Useful for a fast initial health check.

Full scan

Examines a broader set of files and locations and can take significantly longer on a server.

Custom scan

Targets a specific folder or location when the investigation points to a known area.

Offline scan

May require a restart and should be treated as high-impact on a server because it interrupts availability.

Controlled Defender actions

Scan and update commands

Quick scan

Start-MpScan -ScanType QuickScan

Use when a quick Defender scan is justified and the server can tolerate the resource usage.

Full scan

Start-MpScan -ScanType FullScan

Can be resource-intensive. Consider server role, workload, and time constraints before starting.

Custom scan

Start-MpScan -ScanType CustomScan -ScanPath "C:\Path\To\Review"

Use when a specific path is under investigation. Replace the example path with the authorized target.

Update security intelligence

Update-MpSignature

Useful when definitions are outdated and network/update policy allows the operation.

Investigation flow

From health check to verified remediation

01

Confirm Defender health

Use Windows Security and Get-MpComputerStatus to verify antivirus and real-time protection state.

02

Review definitions

Check the security-intelligence version and last update time.

03

Review exclusions

Use Get-MpPreference and the GUI to identify file, folder, process, and extension exclusions.

04

Review threat evidence

Use Protection history, Get-MpThreat, Get-MpThreatDetection, and Defender Operational logs.

05

Preserve before remediation

Record threat names, paths, times, status, and related logs before deleting or allowing anything.

06

Remediate narrowly and verify

Make the smallest justified change, then verify Defender health and required server roles or applications.

Defender event evidence

Use the Operational log to understand what happened

Protection disabled

Look for Defender events showing protection-state changes or unexpected service behavior.

Threat detected

Correlate detection events with file paths, users, processes, and timestamps.

Threat action

Review whether Defender quarantined, removed, blocked, or failed to remediate the item.

Signature update

Use update events to understand when security intelligence changed.

Scan start / completion

Confirm that scans actually completed rather than assuming a scan request succeeded.

Configuration change

Investigate unusual Defender preference or exclusion changes when event evidence is available.

Operational risks

Defender changes can affect server availability

Running a full scan during critical workload

Large scans can consume resources and should be planned around the server's required role.

Deleting a detected file immediately

You may destroy useful evidence or remove a file the application depends on before understanding the situation.

Removing a documented exclusion blindly

Some required applications may depend on narrow exclusions for stability or performance.

Leaving broad exclusions in place

Overly broad exclusions create large blind spots that attackers can exploit.

Ignoring Defender because another tool exists

Confirm the intended security product and actual protection state rather than assuming one replaces the other.

Restarting for offline scanning without planning

Server availability matters. Reboots must be coordinated with required roles and services.

Decision cases

Defender decisions in server context

Real-time protection is disabled

Get-MpComputerStatus shows real-time protection is not active.

That is a meaningful security weakness unless another required security product or scenario constraint explains it.

Response

Confirm the intended antivirus configuration, check for another security product or policy, document the cause, and restore Defender protection only when appropriate for the authorized environment.

Broad exclusion on C:\Temp

The entire folder is excluded, and suspicious scripts were recently observed there.

The exclusion creates a blind spot in a location already associated with suspicious activity.

Response

Preserve the exclusion evidence and suspicious files, confirm no required application depends on the exclusion, then narrow or remove it if justified.

Required application folder is excluded

A vendor document says the exclusion is required for a database workload.

The exclusion may be legitimate even though it reduces scanning coverage.

Response

Keep the narrowest documented exclusion, verify the application requirement, and avoid broadening it beyond what is necessary.

Defender detected a file but the application still needs the path

A detection appears inside a required application directory.

The path is required, but that does not make every file in it safe.

Response

Preserve the detection evidence, identify the specific file and process, investigate the application context, and remediate only the suspicious item when justified.

Fictional defensive lab

Review Defender on APP-SRV

Step 01

Open Defender status

On the fictional APP-SRV, open Windows Security → Virus & threat protection and record the visible protection state.

Step 02

Confirm with PowerShell

Run Get-MpComputerStatus and record antivirus, real-time protection, signature version, and last update time.

Step 03

Review exclusions

Run Get-MpPreference and identify one narrow vendor-documented exclusion plus one broad unexplained C:\Temp exclusion.

Step 04

Review threat evidence

Protection history and Get-MpThreatDetection show a suspicious script inside C:\Temp. Preserve its path, time, threat name, and remediation status.

Step 05

Make the narrowest justified change

Keep the documented application exclusion, remove or narrow the unexplained C:\Temp exclusion if no dependency exists, and scan the specific suspicious location.

Step 06

Verify

Confirm Defender remains healthy, the required application still works, and the suspicious path is no longer broadly excluded.

Common mistakes

Defender mistakes that weaken protection or break workloads

Treating every exclusion as malicious

Some exclusions are legitimate and required by specific server applications.

Treating every exclusion as harmless

Broad exclusions are a common way to weaken protection and deserve evidence-based review.

Removing evidence before documenting it

Threat paths, times, and Defender history can be important for later analysis.

Running heavy scans without considering server load

Security work still has to preserve required availability.

Assuming definitions are current

Always check the actual signature version and last update time.

Forgetting post-change verification

A security change can interfere with required applications or services even when Defender itself looks healthy.

Reflection

Test your Defender reasoning

Question 1

Why is an exclusion not automatically malicious?

Question 2

Why can a broad exclusion still be dangerous even if Defender is otherwise enabled?

Question 3

Why should Protection history and Get-MpThreatDetection be reviewed before deleting a suspicious file?

Question 4

When might a custom scan be preferable to a full scan on a server?

Question 5

Why should an offline scan be treated as high-impact?

Question 6

What should be verified after changing Defender exclusions or protection settings?

Verification checklist

Confirm Defender and the server are both healthy

01

Defender Antivirus is in the intended active state.

02

Real-time protection is in the intended active state.

03

Security intelligence is current enough for the authorized environment.

04

Required exclusions are documented and as narrow as possible.

05

Unnecessary broad exclusions have been addressed.

06

Threat detections and remediation status are documented.

07

Required server roles and applications still function.

08

Recent Defender events show no new unexpected protection failures.

Competition checklist

Before leaving Defender review

01

Open Virus & threat protection.

02

Review Protection history.

03

Check real-time protection state.

04

Check security-intelligence version and last update.

05

Run Get-MpComputerStatus.

06

Run Get-MpPreference.

07

Review path, process, and extension exclusions.

08

Review Get-MpThreat and Get-MpThreatDetection.

09

Check Windows Defender Operational logs.

10

Preserve evidence before remediation.

11

Use targeted scans when appropriate.

12

Verify required applications and services afterward.

Next Windows Server lesson

Windows Defender Firewall

Next, review firewall profiles, inbound and outbound rules, service exposure, role dependencies, remote scope, and safe verification for Windows Server.

Open Lesson 08 →