Skip to content

Commit 05772c0

Browse files
committed
Learn Editor: Update Set-MpPreference.md
1 parent c40c25d commit 05772c0

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

docset/winserver2019-ps/defender/Set-MpPreference.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ Configures preferences for Windows Defender scans and updates.
1515

1616
## SYNTAX
1717

18-
```
18+
19+
```powershell
1920
Set-MpPreference [-ExclusionPath <String[]>] [-ExclusionExtension <String[]>] [-ExclusionProcess <String[]>]
2021
[-RealTimeScanDirection <ScanDirection>] [-QuarantinePurgeItemsAfterDelay <UInt32>]
2122
[-RemediationScheduleDay <Day>] [-RemediationScheduleTime <DateTime>]
@@ -45,7 +46,7 @@ Set-MpPreference [-ExclusionPath <String[]>] [-ExclusionExtension <String[]>] [-
4546
[-DisableBlockAtFirstSeen <Boolean>] [-PUAProtection <PUAProtectionType>] [-CimSession <CimSession[]>]
4647
[-ThrottleLimit <Int32>] [-AsJob] [<CommonParameters>]
4748
[-DisableGradualRelease <Boolean>] [-DefinitionUpdatesChannel <UpdatesChannelType>] [-EngineUpdatesChannel <UpdatesChannelType>] [-PlatformUpdatesChannel <UpdatesChannelType>][-CloudBlockLevel <CloudBlockLevelType>][-ServiceHealthReportInterval <UInt32>]
48-
```
49+
```
4950

5051
## DESCRIPTION
5152
The **Set-MpPreference** cmdlet configures preferences for Windows Defender scans and updates.
@@ -70,15 +71,17 @@ The following table provides remediation action values for detected threats at l
7071

7172
### Example 1: Schedule to check for definition updates everyday
7273

73-
```
74+
75+
```sql
7476
PS C:\> Set-MpPreference -SignatureScheduleDay Everyday
7577
```
7678

7779
This command configures preferences to check for definition updates every day.
7880

7981
### Example 2: Schedule a time of day to check for definition updates
8082

81-
```
83+
84+
```sql
8285
PS C:\> Set-MpPreference -SignatureScheduleTime 02:00:00
8386
```
8487

@@ -915,7 +918,7 @@ The default value is 50.
915918

916919
Note: This limit isn’t a hard limit but rather guidance for the scanning engine to not exceed this maximum on average.
917920

918-
Note: Manually run scans will ignore this setting and run without any CPU limits.
921+
Note: Manually run scans will ignore this setting and run without any CPU limits. If ScanOnlyIfIdleEnabled (instructing the product to scan only when the computer is not in use) and DisableCpuThrottleOnIdleScans (instructing the product to disable CPU throttling on idle scans) are both enabled, then the value of ScanAvgCPULoadFactor is ignored.
919922

920923
```yaml
921924
Type: Byte
@@ -1418,3 +1421,4 @@ This cmdlet supports the common parameters: `-Debug`, `-ErrorAction`, `-ErrorVar
14181421
[Get-MpPreference](./Get-MpPreference.md)
14191422

14201423
[Remove-MpPreference](./Remove-MpPreference.md)
1424+

0 commit comments

Comments
 (0)