Skip to content

Commit 8ab2447

Browse files
committed
Replace Windows Defender full scan with quick scan
1 parent 94e5239 commit 8ab2447

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎Maintenance.ps1‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,10 @@ if (Test-CommandExists "Update-MpSignature") {
640640
Show-Output -ForegroundColor Red "Virus definition updates are not supported. Check them manually."
641641
}
642642
if (Test-CommandExists "Start-MpScan") {
643-
Show-Output -ForegroundColor Cyan "Running Windows Defender full scan. If you have another antivirus program installed, Windows Defender may be disabled, causing this to fail."
644-
Start-MpScan -ScanType "FullScan"
643+
# A full scan can take hours, during which the computer may be unusably slow.
644+
# Therefore, a quick scan is used instead.
645+
Show-Output -ForegroundColor Cyan "Running Windows Defender quick scan. If you have another antivirus program installed, Windows Defender may be disabled, causing this to fail."
646+
Start-MpScan -ScanType "QuickScan"
645647
} else {
646648
Show-Output -ForegroundColor Red "Virus scan is not supported. Run it manually."
647649
}

0 commit comments

Comments
 (0)