Skip to content

Commit c22501b

Browse files
committed
Update schedule-antivirus-scans-powershell.md
1 parent b8e1f86 commit c22501b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

defender-endpoint/schedule-antivirus-scans-powershell.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.localizationpriority: medium
66
author: emmwalshh
77
ms.author: ewalsh
88
ms.custom: nextgen
9-
ms.date: 04/23/2025
9+
ms.date: 04/29/2025
1010
ms.reviewer: pauhijbr, ksarens
1111
manager: deniseb
1212
ms.subservice: ngp
@@ -46,7 +46,6 @@ Set-MpPreference -ScanScheduleQuickScanTime
4646
4747
For example, to set a daily quick scan run on the Windows clients at 12:00 PM. (720). In this example, we use lunch time, since many devices nowadays are turned off after-hours (For example, laptops and/or tablets).
4848

49-
5049
```powershell
5150
Set-MpPreference -ScanScheduleQuickScanTime 720
5251
```
@@ -96,11 +95,10 @@ The default value is 8, never. If you specify a value of 8 or don't specify a va
9695

9796
-ScanScheduleOffset
9897

99-
Configures the number of minutes after midnight to perform a scheduled scan. The time on the endpoint is used to determine the local time. If you enable this setting, a scheduled scan will run at the time specified. If you disable or dont enable this setting, a scheduled scan runs at the default time of two hours (120 minutes) after midnight.
98+
This setting allows you to configure the number of minutes after midnight to perform a scheduled scan. The local time on the endpoint is used to determine when the scan occurs. If you enable this setting, the scheduled scan runs at the specified time. If you disable or don't enable this setting, the scheduled scan will default to running two hours (120 minutes) after midnight.
10099

101100
For example, setting the weekly scheduled scan for a quick scan, that runs every Wednesday at 12:00 PM (lunch time)
102101

103-
104102
```powershell
105103
Set-MpPreference -ScanParameters 1
106104
Set-MpPreference -ScanScheduleDay 4
@@ -127,8 +125,6 @@ Set-MpPreference -ScanScheduleOffset 720
127125

128126
For more information, see [Use PowerShell cmdlets to configure and run Microsoft Defender Antivirus](/editor/MicrosoftDocs/defender-docs-pr/defender-endpoint%2Fschedule-antivirus-scans-powershell.md/main/bcb7536e-34b9-8af7-5381-96c46d108a91/use-powershell-cmdlets-microsoft-defender-antivirus.md) and [Defender Antivirus cmdlets](/powershell/module/defender/).
129127

130-
131-
132128
## PowerShell cmdlets for scheduling scans to complete remediation
133129

134130
Use the following cmdlets:

0 commit comments

Comments
 (0)