Update Windows Defender Signatures from the Command Line (MpCmdRun)

Trigger an immediate Microsoft Defender antivirus definition update without opening the Security app.

WindowscmddefendersecurityLow risk
Run & "$env:ProgramFiles\Windows Defender\MpCmdRun.exe" -SignatureUpdate in PowerShell (or the same path directly in cmd).

01Command

Command
$ & "$env:ProgramFiles\Windows Defender\MpCmdRun.exe" -SignatureUpdate

02What it does

MpCmdRun.exe is Defender's built-in command-line tool, and -SignatureUpdate pulls the latest security intelligence definitions from Microsoft Update right away. This is useful when the Security app shows outdated definitions, when you are scripting health checks, or after restoring network access on an offline machine. If your PC cannot reach Microsoft's servers, the UNC variant (-SignatureUpdateUNC \\server\share) can pull updates from a network share instead.

03Risk

RiskLow risk
!Warning: If the update fails with a network error, check the proxy/VPN settings — Defender uses the Windows Update service channel.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

Last verified: 2026-09-18 · Category: Security & Privacy

06Related solutions