Forum Discussion

ArtTrenton's avatar
ArtTrenton
Copper Contributor
Dec 24, 2022

Start-MpScan -ScanType FullScan ignores ExclusionExtension preference

Potential workaround would be to allow the -ScanPath parameter to accept a String[] of drive letters when performing a CustomScan.

 

#EXAMPLE - Custom Windows Defender Scan on Multiple Drives with Exclusions
#Requires -RunAsAdministrator
Import-Module Defender
Set-MpPreference -ExclusionExtension "*.iso,*.mp3,*.wav"
Start-MpScan -ScanType CustomScan -ScanPath "C:,D:"

 

 

Resources