Forum Discussion
CS_HelpDesk
2 years agoGoTo Contributor
Run Microsoft Defender scan on the selected file or folder.
---
$fileOrFolderToScan = $null
& "$env:ProgramFiles\Windows Defender\MpCmdRun.exe" -Scan -ScanType 3 -File $FileOrFolderToScan