Skip to content

MSAV command in Windows

The Windows msav command is a powerful tool that allows users to manually scan and remove viruses from their system. By running the msav command, users can perform a thorough scan of their files and folders, identifying and removing any malicious software that may be present. This command is especially useful for users who suspect that their system may be infected with a virus and want to take immediate action. By following the correct syntax and options for the msav command, users can ensure that their system is safe and secure from potential threats.

Terminal window
msav [options] [parameters]
OptionDescription
-fPerform a full system scan
-qQuick scan for selected files
-rRemove infected files
-sSchedule a scan for a specific time
-uUpdate virus definitions
ParameterDescription
FILESpecify a file to scan
DIRECTORYSpecify a directory to scan
DRIVESpecify a drive to scan
Terminal window
msav C:\Users\username\Documents\file.txt

Scans the file “file.txt” for viruses.

Terminal window
msav C:\Users\username\Downloads

Scans all files in the “Downloads” folder for viruses.

Terminal window
msav C:\

Scans all files on the C drive for viruses.

Scan a specific file for viruses and clean it

Section titled “Scan a specific file for viruses and clean it”
Terminal window
msav -c C:\Users\username\Downloads\infected_file.exe

Scans the file “infected_file.exe” for viruses and attempts to clean it.

Terminal window
msav -l C:\Users\username\Documents\scan_log.txt C:\Users\username\Downloads

Scans all files in the “Downloads” folder for viruses and saves the scan results to “scan_log.txt”.

Scan specific files for viruses and exclude a file type

Section titled “Scan specific files for viruses and exclude a file type”
Terminal window
msav -x .pdf C:\Users\username\Documents

Scans all files in “Documents” folder for viruses, excluding PDF files.

Terminal window
msav -u

Updates the virus definition files used by the Windows msav command.

Scan a specific file for viruses with hidden mode

Section titled “Scan a specific file for viruses with hidden mode”
Terminal window
msav -h C:\Users\username\Documents\hidden_file.exe

Scans the file “hidden_file.exe” for viruses in hidden mode.

To use the msav command in Windows, execute the following command:

Terminal window
msav --option <value>

How do I check the version of msav in CMD?

Section titled “How do I check the version of msav in CMD?”

To check the version of msav in CMD, use the following command:

Terminal window
msav --version

How can I list available options with msav?

Section titled “How can I list available options with msav?”

To list available options with msav, use the following command:

Terminal window
msav --help

To scan a specific file with msav, use the following command:

Terminal window
msav --scan <file_path>

To scan a directory with msav, use the following command:

Terminal window
msav --scan <directory_path>

To enable verbose mode with msav, use the following command:

Terminal window
msav --verbose

How do I update the virus definition database with msav?

Section titled “How do I update the virus definition database with msav?”

To update the virus definition database with msav, use the following command:

Terminal window
msav --update

How do I quarantine a file detected by msav?

Section titled “How do I quarantine a file detected by msav?”

To quarantine a file detected by msav, use the following command:

Terminal window
msav --quarantine <file_path>

How do I exclude specific files from being scanned by msav?

Section titled “How do I exclude specific files from being scanned by msav?”

To exclude specific files from being scanned by msav, use the following command:

Terminal window
msav --exclude <file_path>
  • Backup and restore system files
  • Scan and repair damaged or corrupted system files
  • Verify the integrity of system files
  • Fix issues related to missing or changed system files