The way to Use Microsoft Defender Antivirus from Command Immediate on Home windows 10

Posted on


Windows 10 Logo

Home windows 10’s included Microsoft Defender antivirus—also referred to as Home windows Defender—has a command-line interface. Quite than utilizing the graphical Home windows Safety app, you possibly can run Home windows 10’s built-in antivirus from Command Immediate, PowerShell, or Windows Terminal.

Run a Fast Virus Scan

You possibly can run a fast scan to search for viruses, malware, and different threats in some widespread locations, such because the Home windows Registry and startup folders. This scan often solely takes a couple of minutes to complete.

To make use of this scan, open the “Begin” menu, seek for “Command Immediate,” right-click the utility, and choose “Run as administrator.”

Run the Command Prompt as admin

Click on “Sure” within the Person Account Management immediate.

Within the Command Immediate window, kind the next to make the Microsoft Defender Antivirus listing your present working listing:

cd C:ProgramDataMicrosoftWindows DefenderPlatform4.18*

Go to the Microsoft Defender Antivirus folder

Observe: In the event you make one other listing your present working listing or shut and reopen the Command Immediate, just be sure you run the above command earlier than utilizing another Microsoft Defender Antivirus instructions.

Then, enter the next command and press “Enter” to begin a fast virus scan:

MpCmdRun -Scan -ScanType 1

Run a quick virus scan

You’ll see the reside scan progress in your display.

Run a Full Virus Scan

A full scan totally checks all of your pc information for viruses, malware, and different safety threats. Since it is a complete scan, it tends to take longer than the opposite scans.

You possibly can run a full scan utilizing the next command within the Command Immediate:

MpCmdRun -Scan -ScanType 2

Run a full virus scan

Observe: If it is advisable to cease a scan for some cause, press Ctrl+C in your keyboard.

Carry out a Customized Virus Scan

You’ll need to use a customized scan when you might have specific information or folders that you just need to scan for viruses, malware, and different threats. You should use this to scan information in your exterior storage as properly, similar to your USB flash drives.

To make use of this, kind the next command into the Command Immediate window and press “Enter.”

Be sure that to interchange “PATH” with the trail to the folder or file that you just need to scan. If there are areas in your path, add double quotes earlier than and after the trail, like this: “C:UsersMaheshDesktopMy Information”

MpCmdRun -Scan -ScanType 3 -File PATH

As an illustration, when you wished to scan your desktop for any threats, you’d run the next command, changing “MYNAME” together with your username.

MpCmdRun -Scan -ScanType 3 -File C:UsersMYNAMEDesktop

Run a custom virus scan

Scan Your PC’s Boot Sector Information

Your PC’s boot sector is the place all of the important data concerning your pc’s boot-up is saved. This sector comprises the code that launches your working system.

Typically, sure viruses and different threats assault this boot sector. When this occurs, you expertise issues booting up your computer. You would face different points as properly.

RELATED: What to Do When Windows Won’t Boot

In the event you imagine your PC is contaminated with a virus or malware, it’s value working a boot sector scan to seek out and take away any suspicious content material from this sector.

You should use the next Microsoft Defender Antivirus command to run a boot sector scan:

MpCmdRun -Scan -ScanType -BootSectorScan

Run a boot sector scan

Restore Quarantined Information

When Microsoft Defender Antivirus finds a suspicious file, it strikes that file to the Quarantine. This can be a particular location to retailer suspicious information, and your information can’t launch after they’re right here within the Quarantine.

In the event you imagine the antivirus has mistakenly moved a file to the Quarantine, you should use a command to revive that file again to its unique location.

To do that, first, run the next command to view a listing of all of your quarantined information:

MpCmdRun -Restore -ListAll

View quarantined files

From the listing, notice the title of the file that you just need to restore. Then kind the next command, change “MyApp.exe” with the title of the file you need to restore, and press “Enter.”

MpCmdRun -Restore -Title MyApp.exe

If you wish to restore your file to a different folder, use the next command as a substitute. Just be sure you change “PATH” with the trail to your folder earlier than you run the command.

In fact, change “MyApp.exe” with the title of the file that you just need to restore.

MpCmdRun -Restore -Title MyApp.exe -FilePath PATH

Replace Microsoft Defender Antivirus

The Microsoft Defender Antivirus updates itself recurrently to make sure that it will probably discover newer viruses and threats. Nevertheless, you possibly can drive it to seek out and obtain newer updates at any time.

You are able to do this by working the next command within the Command Immediate window:

MpCmdRun -SignatureUpdate

Update the Microsoft Defender Antivirus

It’ll replace the virus definitions with none prompts.

View All Accessible Microsoft Defender Antivirus Choices

Along with the above, there are numerous different command mixtures that you should use to benefit from this antivirus in your Home windows 10 PC.

To seek out all obtainable instructions and parameters, run this command within the Command Immediate:

MpCmdRun -h

View all the Microsoft Defender Antivirus commands

You’re now a professional in relation to utilizing the Microsoft Defender Antivirus from the Command Immediate.

In the event you desire the graphical interface, take a look at our information on how to use the Microsoft Defender Antivirus, which explains all of the graphical options of this program.

RELATED: How to Use the Built-in Windows Defender Antivirus on Windows 10





Source link

Gravatar Image
I love to share everything with you

Leave a Reply

Your email address will not be published. Required fields are marked *