跳到正文
FunCoding

defender-quickscan

Windows Defender: scans, threat history, signatures (PowerShell)

Star
915
分类
安全
许可证
AGPL-3.0
最近提交
2026年10月20日

skills/defender-quickscan/SKILL.md

在 GitHub 上查看

Defender Quick Scan

Trigger Windows Defender antivirus scans, inspect threat history, update virus definitions, and check real-time protection status — all via PowerShell cmdlets.

When to Use

  • User wants to run a quick or full antivirus scan
  • User asks about recent threats detected by Defender
  • User wants to check if real-time protection is enabled
  • User needs to update virus/malware signatures
  • User wants to know the current Defender protection status

How to Use

Check Windows Defender status

Get-MpComputerStatus | Select-Object AMServiceEnabled, AntispywareEnabled,
  AntivirusEnabled, RealTimeProtectionEnabled,
  AntispywareSignatureAge, AntivirusSignatureAge, QuickScanAge

Run a quick or full scan

Start-MpScan -ScanType QuickScan   # fast scan of likely threat locations
Start-MpScan -ScanType FullScan    # thorough scan of all files (30-60 min)

Scan a specific file or folder

Start-MpScan -ScanType CustomScan -ScanPath "C:\Users\<you>\Downloads"

Update virus definitions

Update-MpSignature

View threat detection history

Get-MpThreatDetection | Select-Object ThreatID, ActionSuccess,
  DetectionSourceTypeID, Resources, InitialDetectionTime |
  Sort-Object InitialDetectionTime -Descending |
  Select-Object -First 10

View active threats

Get-MpThreat | Select-Object ThreatID, ThreatName, SeverityID,
  CategoryID, IsActive, Resources

Remove a detected threat

Remove-MpThreat -ThreatID 12345

Check exclusion list

(Get-MpPreference).ExclusionPath
(Get-MpPreference).ExclusionExtension

Add a scan exclusion (path)

Add-MpPreference -ExclusionPath "C:\DevTools\node_modules"

Examples

"Scan my Downloads folder for threats" → Start-MpScan -ScanType CustomScan -ScanPath "$env:USERPROFILE\Downloads" — Defender scans the folder and logs any detections.

"Are my virus definitions up to date?" → Get-MpComputerStatus | Select-Object AntivirusSignatureAge, AntivirusSignatureLastUpdated — signature age of 0 means updated today.

"Show me the last 5 threats Defender found" → Get-MpThreatDetection | Sort-Object InitialDetectionTime -Descending | Select-Object -First 5

Cautions

  • Full scans can take 30-60 minutes and consume significant CPU/IO — warn the user before running
  • Start-MpScan requires Windows Defender to be the active antivirus — third-party AV may disable these cmdlets
  • Removing a threat with Remove-MpThreat is permanent; confirm with the user before executing
  • Adding exclusions reduces protection coverage — only exclude paths you're certain are safe

相似的 Skill

agent-security-hardening

AFaffaan-m/ECC314k近 7 天新增 3,503 个 star

精选

ponytail-audit

审计整个代码库,找出 bug、安全漏洞和性能瓶颈,获得按重要性排序的通俗报告。

DIDietrichGebert/ponytail202k近 7 天新增 4,226 个 star

gstack

GAgarrytan/gstack143k近 7 天新增 524 个 star

精选

security-and-hardening

按 OWASP Top 10 检查输入处理、登录和依赖,加固代码。

ADaddyosmani/agent-skills122k近 7 天新增 1,421 个 star

doubt-driven-development

ADaddyosmani/agent-skills122k近 7 天新增 1,421 个 star

ruview-rvagent

RUruvnet/RuView106k近 7 天新增 596 个 star