Worklet: Execute Defender Quick or Full scan
JasonG-Automox
October 11, 2019 at 3:29 pm UTC
This will allow you to run a Windows Defender scan on any or all of your machines at anytime. Only run this manually
• Under Evaluation Code:
powershell8 lines
If (Test-Path "$env:allusersprofile\SoftwareDistribution")
{
Exit 0
}
Else {
Exit 1
}• Under Remediation Code:
powershell21 lines
<#
NAME
Start-MpScan
DESCRIPTION
The Start-MpScan cmdlet starts a scan on a computer. The cmdlet performs scans for the path you specify.
SYNOPSIS
Starts a scan on a computer.
-ScanType [<ScanType>]
Specifies the type of scan. The acceptable values for this parameter are:
-- FullScan
-- QuickScan
Uncomment only one variable for scan to run either a fullscan or quickscan
This will not work if you have Windows Defender disabled
#>
$Scan = 'QuickScan'
#$Scan = 'FullScan'
Start-MpScan -Scantype $ScanThis discussion is archived and closed to replies. Continue it in the Automox Community Slack.
Discuss on Slack