Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade

How to Execute Start-MpScan via PowerShell on Windows

The Start-MpScan command is a PowerShell cmdlet used in Windows environments to initiate a malware scan using Windows Defender. This cmdlet is part of the Windows Defender module, which provides a set of tools for managing and configuring Windows Defender Antivirus. This article will guide you through executing a malware scan using Start-MpScan via PowerShell, providing practical examples and explanations.


Understanding Start-MpScan


Start-MpScan is used to trigger a scan for malware and other potentially unwanted software on your system. It is a part of the Windows Defender module, which is included with Windows 10 and later versions. This cmdlet allows you to perform different types of scans, such as quick scans, full scans, or custom scans on specified locations.


Prerequisites



  • You must have administrative privileges to run Start-MpScan.

  • Ensure that Windows Defender is enabled on your system.


Practical Examples


Example 1: Running a Quick Scan


A quick scan checks the areas of your system most likely to be infected by malware.


Start-MpScan -ScanType QuickScan

This command will initiate a quick scan of your system. It is the fastest way to check for active threats.


Example 2: Running a Full Scan


A full scan is more comprehensive and checks all files and running programs on your hard disk.


Start-MpScan -ScanType FullScan

This command is more time-consuming but thorough, ensuring that your entire system is scanned for potential threats.


Example 3: Running a Custom Scan


A custom scan allows you to specify particular directories or files to scan.


Start-MpScan -ScanType CustomScan -ScanPath "C:\Users\YourUsername\Documents"

Replace "C:\Users\YourUsername\Documents" with the path you want to scan. This is useful for checking specific areas where you suspect malware might be hiding.


Additional Options



  • -ScanPath: Use this parameter with CustomScan to specify the path to scan.

  • -ScanType: Use this to define the type of scan: QuickScan, FullScan, or CustomScan.


Checking Scan Results


After running a scan, you can check the results using the Get-MpThreat cmdlet, which provides information about detected threats.


Get-MpThreat

This command will list any threats that were detected during the scan, along with their status and recommended actions.


Conclusion


The Start-MpScan cmdlet is a powerful tool for maintaining the security of your Windows system. By integrating it into your regular system maintenance routine, you can help ensure that your computer remains free from malware and other threats.


To share Download PDF

Gostou do artigo? Deixe sua avaliação!
Sua opinião é muito importante para nós. Clique em um dos botões abaixo para nos dizer o que achou deste conteúdo.