Skip to content

Commit 9855426

Browse files
committed
Learn Editor: Update schedule-antivirus-scans-powershell.md
1 parent eac7a28 commit 9855426

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ search.appverid: met150
3030
- Windows
3131
- Windows Server
3232

33-
This article describes how to configure scheduled scans using PowerShell cmdlets. To learn more about scheduling scans and about scan types, see [Configure scheduled quick or full Microsoft Defender Antivirus scans](schedule-antivirus-scans.md).
33+
This article describes how to configure scheduled scans using PowerShell cmdlets. To learn more about scheduling scans and about scan types, see [Configure scheduled quick or full Microsoft Defender Antivirus scans](schedule-antivirus-scans.md).
3434

3535
## Use PowerShell cmdlets for scheduling daily quick scans
3636

@@ -58,9 +58,12 @@ Use the following cmdlets:
5858
```PowerShell
5959
Set-MpPreference -ScanParameters
6060
Set-MpPreference -ScanScheduleDay
61-
Set-MpPreference -ScanScheduleTime
61+
Set-MpPreference -ScanScheduleOffset
6262
```
6363

64+
> [!TIP]
65+
> We recommend using the ScanScheduleOffset instead of ScanScheduleTime.
66+
6467
-ScanParameters, specifies the scan type to use during a scheduled scan. The acceptable values for this parameter are:
6568

6669
1: Quick scan
@@ -91,17 +94,17 @@ Specifies the day of the week on which to perform a scheduled scan. Alternativel
9194

9295
The default value is 8, never. If you specify a value of 8 or don't specify a value, Windows Defender doesn't perform scheduled scans.
9396

94-
-ScanScheduleTime
97+
-ScanScheduleOffset
9598

96-
Specifies the time of day to run a scheduled scan. The time refers to the local time on the computer. Specify the number of minutes after midnight (for example, enter 60 for AM). This parameter has a default time of two hours after midnight (2 AM).
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 don’t enable this setting, a scheduled scan runs at the default time of two hours (120 minutes) after midnight.
97100

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

100103

101104
```powershell
102105
Set-MpPreference -ScanParameters 1
103106
Set-MpPreference -ScanScheduleDay 4
104-
Set-MpPreference -ScanScheduleTime 720
107+
Set-MpPreference -ScanScheduleOffset 720
105108
```
106109

107110
> [!TIP]

0 commit comments

Comments
 (0)