Skip to content

Commit 69702cd

Browse files
committed
Updates per TR
1 parent 013c808 commit 69702cd

File tree

4 files changed

+170
-78
lines changed

4 files changed

+170
-78
lines changed

docset/winserver2022-ps/defender/Add-MpPreference.md

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ title: Add-MpPreference
1111
# Add-MpPreference
1212

1313
## SYNOPSIS
14-
Modifies settings for Windows Defender.
14+
15+
Adds values to multi-valued properties (for example, exclusions and protected folders) in Windows
16+
Defender.
1517

1618
> [!NOTE]
1719
> You need to run this cmdlet in an elevated PowerShell window (a PowerShell window you opened by
@@ -146,9 +148,13 @@ To add values without affecting existing values, use the following syntax:
146148

147149
`Add-MpPreference -AttackSurfaceReductionRules_Ids Rule1,Rule2,...RuleN Rule1,Rule2,...RuleN -AttackSurfaceReductionRules_Actions Action1,Action2,...ActionN`
148150

149-
To remove values without affecting other existing values, use the **Remove-MPPreference** cmdlet:
151+
For each ID value, there's a corresponding Action value. The order determines which action goes with
152+
what ID. The first action goes with the first ID, the second action goes with the second ID,
153+
and so on.
154+
155+
To remove values without affecting other existing values, use the **Remove-MpPreference** cmdlet:
150156

151-
`Remove-MPPreference -AttackSurfaceReductionRules_Ids Rule1,Rule2,...RuleN -AttackSurfaceReductionRules_Actions Action1,Action2,...ActionN`
157+
`Remove-MpPreference -AttackSurfaceReductionRules_Ids Rule1,Rule2,...RuleN -AttackSurfaceReductionRules_Actions Action1,Action2,...ActionN`
152158

153159
To replace all existing values with the values you specify, use the **Set-MpPreference** cmdlet:
154160

@@ -190,9 +196,13 @@ To add values without affecting existing values, use the following syntax:
190196

191197
`Add-MpPreference -AttackSurfaceReductionRules_Ids Rule1,Rule2,...RuleN Rule1,Rule2,...RuleN -AttackSurfaceReductionRules_Actions Action1,Action2,...ActionN`
192198

193-
To remove values without affecting other existing values, use the **Remove-MPPreference** cmdlet:
199+
For each ID value, there's a corresponding Action value. The order determines which action goes with
200+
what ID. The first action goes with the first ID, the second action goes with the second ID,
201+
and so on.
194202

195-
`Remove-MPPreference -AttackSurfaceReductionRules_Ids Rule1,Rule2,...RuleN -AttackSurfaceReductionRules_Actions Action1,Action2,...ActionN`
203+
To remove values without affecting other existing values, use the **Remove-MpPreference** cmdlet:
204+
205+
`Remove-MpPreference -AttackSurfaceReductionRules_Ids Rule1,Rule2,...RuleN -AttackSurfaceReductionRules_Actions Action1,Action2,...ActionN`
196206

197207
To replace all existing values with the values you specify, use the **Set-MpPreference** cmdlet:
198208

@@ -243,7 +253,7 @@ variables (for example, `%appdata%...`) for path names.
243253
To add values without affecting other existing values, use the following syntax:
244254
`"PathAndFileName1","PathAndFileName2",..."PathAndFileNameN"`
245255

246-
To remove values without affecting existing values, use the **Remove-MPPreference** cmdlet:
256+
To remove values without affecting existing values, use the **Remove-MpPreference** cmdlet:
247257

248258
`Remove-MpPreference -ControlledFolderAccessAllowedApplications "PathAndFileName1","PathAndFileName2",..."PathAndFileNameN"`
249259

@@ -281,7 +291,7 @@ To remove values without affecting other existing values, use the **Remove-MpPre
281291

282292
`Remove-MpPreference -ControlledFolderAccessAllowedApplications "Path1","Path2",..."PathN"`
283293

284-
To replace all existing values with the values you specify, use the **Set-MPPreference** cmdlet:
294+
To replace all existing values with the values you specify, use the **Set-MpPreference** cmdlet:
285295

286296
`Set-MpPreference -ControlledFolderAccessAllowedApplications"Path1","Path2"..."PathN"`.
287297

@@ -311,7 +321,7 @@ exclusions from scheduled, custom, and real-time scanning.
311321
To add values without affecting other existing values, use the following syntax:
312322
`"Extension1","Extension2"..."ExtensionN"`
313323

314-
To remove values without affecting existing values, use the **Remove-MPPreference** cmdlet:
324+
To remove values without affecting existing values, use the **Remove-MpPreference** cmdlet:
315325

316326
`Remove-MpPreference -ExclusionExtension "Extension1","Extension2"..."ExtensionN"`
317327

@@ -339,7 +349,7 @@ real-time scanning.
339349
To add values without affecting other existing values, use the following syntax:
340350
`"IPAddress1","IPAddress2",..."IPAddressN"`
341351

342-
To remove values without affecting existing values, use the **Remove-MPPreference** cmdlet:
352+
To remove values without affecting existing values, use the **Remove-MpPreference** cmdlet:
343353

344354
`Remove-MpPreference -ExclusionIpAddress "IPAddress1","IPAddress",..."IPAddressN"`
345355

@@ -367,7 +377,7 @@ scheduled and real-time scanning.
367377
To add values without affecting other existing values, use the following syntax:
368378
`"Value1","Value2",..."ValueN"`
369379

370-
To remove values without affecting existing values, use the **Remove-MPPreference** cmdlet:
380+
To remove values without affecting existing values, use the **Remove-MpPreference** cmdlet:
371381

372382
`Remove-MpPreference -ExclusionPath "Value1","Value2",..."ValuehN"`
373383

@@ -395,7 +405,7 @@ and real-time scanning.
395405
To add values without affecting other existing values, use the following syntax:
396406
`"Path1","Path2",..."PathN"`
397407

398-
To remove values without affecting existing values, use the **Remove-MPPreference** cmdlet:
408+
To remove values without affecting existing values, use the **Remove-MpPreference** cmdlet:
399409

400410
`Remove-MpPreference -ExclusionProcess "Path1","Path2",..."PathhN"`
401411

@@ -464,7 +474,11 @@ To add values without affecting other existing values, use the following syntax:
464474

465475
`Add-MpPreference -ThreatIDDefaultAction_Ids ThreatID1,ThreatID2,...ThreatIDN -ThreatIDDefaultAction_Actions Action1,Action2,...ActionN`
466476

467-
To remove values without affecting existing values, use the **Remove-MPPreference** cmdlet:
477+
For each ID value, there's a corresponding Action value. The order determines which action goes with
478+
what ID. The first action goes with the first ID, the second action goes with the second ID,
479+
and so on.
480+
481+
To remove values without affecting existing values, use the **Remove-MpPreference** cmdlet:
468482

469483
`Remove-MpPreference -ThreatIDDefaultAction_Ids ThreatID1,ThreatID2,...ThreatIDN -ThreatIDDefaultAction_Actions Action1,Action2,...ActionN`
470484

@@ -519,6 +533,10 @@ To add values without affecting other existing values, use the following syntax:
519533

520534
`Add-MpPreference -ThreatIDDefaultAction_Ids ThreatID1,ThreatID2,...ThreatIDN -ThreatIDDefaultAction_Actions Action1,Action2,...ActionN`
521535

536+
For each ID value, there's a corresponding action value. The order determines which action goes with
537+
what ID. The first action goes with the first ID, the second action goes with the second ID,
538+
and so on.
539+
522540
To remove values without affecting existing values, use the **Remove-MpPreference** cmdlet:
523541

524542
`Remove-MpPreference -ThreatIDDefaultAction_Ids ThreatID1,ThreatID2,...ThreatIDN -ThreatIDDefaultAction_Actions Action1,Action2,...ActionN`

docset/winserver2022-ps/defender/Get-MpPreference.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ title: Get-MpPreference
1111
# Get-MpPreference
1212

1313
## SYNOPSIS
14-
Gets preferences for the Windows Defender scans and updates.
14+
15+
Returns settings and configuration for Windows Defender.
1516

1617
## SYNTAX
1718

@@ -25,23 +26,27 @@ Get-MpPreference
2526

2627
## DESCRIPTION
2728

28-
The `Get-MpPreference` cmdlet gets preferences for the Windows Defender scans and updates. For more
29-
information about the preferences that this cmdlet retrieves, see
29+
The `Get-MpPreference` cmdlet returns settings for Windows Defender. For more
30+
information about the settings that this cmdlet retrieves, see
3031
[Windows Defender Preferences Class](/previous-versions/windows/desktop/legacy/dn455323(v=vs.85)).
3132

3233
## EXAMPLES
3334

34-
### Example 1: View the scheduled scan day
35+
### Example 1: View all settings
3536

3637
```powershell
37-
PS C:\> $Preferences = Get-MpPreference
38-
PS C:\> $Preferences.ScanScheduleDay
38+
Get-MpPreference
3939
```
4040

41-
The first command gets the preferences, and then stores them in the **$Preferences** variable.
41+
This example returns all settings for Windows Defender.
42+
43+
### Example 2: View the scheduled scan day
44+
45+
```powershell
46+
Get-MpPreference | Format-List ScanScheduleDay
47+
```
4248

43-
The second command uses standard dot syntax to display the **ScanScheduleDay** property of the
44-
object stored in the **$Preferences** variable.
49+
This example returns the current value of the **ScanScheduleDay** setting.
4550

4651
## PARAMETERS
4752

@@ -92,7 +97,7 @@ Accept wildcard characters: False
9297
### -ThrottleLimit
9398
9499
Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If
95-
this parameter is omitted or a value of `0` is entered, then Windows PowerShell® calculates an
100+
this parameter is omitted or a value of `0` is entered, then Windows PowerShell calculates an
96101
optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the
97102
computer. The throttle limit applies only to the current cmdlet, not to the session or to the
98103
computer.

docset/winserver2022-ps/defender/Remove-MpPreference.md

Lines changed: 48 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ title: Remove-MpPreference
1111
# Remove-MpPreference
1212

1313
## SYNOPSIS
14-
Removes exclusions or default actions.
14+
15+
Removes values from multi-valued properties (for example, exclusions and protected folders) and
16+
returns settings in Windows Defender to their default values.
1517

1618
> [!NOTE]
1719
> You need to run this cmdlet in an elevated PowerShell window (a PowerShell window you opened by
@@ -137,8 +139,8 @@ Remove-MpPreference
137139

138140
## DESCRIPTION
139141

140-
The **Remove-MpPreference** cmdlet removes exclusions for file name extensions, paths, and processes
141-
, or default actions for high, moderate, and low threats.
142+
The **Remove-MpPreference** cmdlet removes values from multi-valued properties (for example,
143+
exclusions and protected folders) and returns settings in Windows Defender to their default values.
142144

143145
## EXAMPLES
144146

@@ -287,7 +289,7 @@ Reduction (ASR) rules. Enter a folder path or a fully qualified resource name. F
287289
To remove values without affecting other existing values, use the following syntax:
288290
`"Value1","Value2",..."ValueN"`
289291

290-
To add values without affecting existing values, use the **Add-MPPreference** cmdlet:
292+
To add values without affecting existing values, use the **Add-MpPreference** cmdlet:
291293

292294
`Add-MpPreference -AttackSurfaceReductionOnlyExclusions "Value1","Value2",..."ValueN"`
293295

@@ -333,7 +335,11 @@ To remove values without affecting other existing values, use the following synt
333335

334336
`Remove-MpPreference -AttackSurfaceReductionRules_IdsRule1,Rule2,...RuleN -AttackSurfaceReductionRules_Actions Action1,Action2,...ActionN`
335337

336-
To add values without affecting existing values, use the **Add-MPPreference** cmdlet:
338+
For each ID value, there's a corresponding action value. The order determines which action goes with
339+
what ID. The first action goes with the first ID, the second action goes with the second ID,
340+
and so on.
341+
342+
To add values without affecting existing values, use the **Add-MpPreference** cmdlet:
337343

338344
`Add-MpPreference -AttackSurfaceReductionRules_Ids Rule1,Rule2,...RuleN -AttackSurfaceReductionRules_Actions Action1,Action2,...ActionN`
339345

@@ -379,7 +385,11 @@ To remove values without affecting other existing values, use the following synt
379385

380386
`Remove-MpPreference -AttackSurfaceReductionRules_IdsRule1,Rule2,...RuleN -AttackSurfaceReductionRules_Actions Action1,Action2,...ActionN`
381387

382-
To add values without affecting existing values, use the **Add-MPPreference** cmdlet:
388+
For each ID value, there's a corresponding action value. The order determines which action goes with
389+
what ID. The first action goes with the first ID, the second action goes with the second ID,
390+
and so on.
391+
392+
To add values without affecting existing values, use the **Add-MpPreference** cmdlet:
383393

384394
`Add-MpPreference -AttackSurfaceReductionRules_Ids Rule1,Rule2,...RuleN -AttackSurfaceReductionRules_Actions Action1,Action2,...ActionN`
385395

@@ -496,7 +506,7 @@ variables (for example, `%appdata%...`) for path names.
496506
To remove values without affecting other existing values, use the following syntax:
497507
`"PathAndFileName1","PathAndFileName2",..."PathAndFileNameN"`
498508

499-
To add values without affecting existing values, use the **Add-MPPreference** cmdlet:
509+
To add values without affecting existing values, use the **Add-MpPreference** cmdlet:
500510

501511
`Add-MpPreference -ControlledFolderAccessAllowedApplications "PathAndFileName1","PathAndFileName2",..."PathAndFileNameN"`
502512

@@ -530,11 +540,11 @@ for path names.
530540
To remove values without affecting other existing values, use the following syntax:
531541
`"Path1","Path2",..."PathN"`
532542

533-
To add values without affecting existing values, use the **Add-MPPreference** cmdlet:
543+
To add values without affecting existing values, use the **Add-MpPreference** cmdlet:
534544

535545
`Add-MpPreference -ControlledFolderAccessAllowedApplications "Path1","Path2",..."PathN"`
536546

537-
To replace all existing values with the values you specify, use the **Set-MPPreference** cmdlet:
547+
To replace all existing values with the values you specify, use the **Set-MpPreference** cmdlet:
538548

539549
`Set-MpPreference -ControlledFolderAccessAllowedApplications"Path1","Path2"..."PathN"`.
540550

@@ -588,6 +598,9 @@ malicious and unwanted software. You don't need to specify a value with this swi
588598
**Tip**: This switch works only if the current value of the DisableArchiveScanning
589599
property is True (disabled). If the value is already False (enabled), this switch does nothing.
590600

601+
The value True for the DisableArchiveScanning property is available only if Tamper Protection is
602+
disabled. For more information, see [How do I configure or manage Tamper Protection?](https://learn.microsoft.com/defender-endpoint/prevent-changes-to-security-settings-with-tamper-protection#how-do-i-configure-or-manage-tamper-protection).
603+
591604
```yaml
592605
Type: SwitchParameter
593606
Parameter Sets: (All)
@@ -628,6 +641,9 @@ specify a value with this switch.
628641
**Tip**: This switch works only if the current value of the DisableBehaviorMonitoring
629642
property is True (disabled). If the value is already False (enabled), this switch does nothing.
630643

644+
The value True for the DisableBehaviorMonitoring property is available only if Tamper Protection is
645+
disabled. For more information, see [How do I configure or manage Tamper Protection?](https://learn.microsoft.com/defender-endpoint/prevent-changes-to-security-settings-with-tamper-protection#how-do-i-configure-or-manage-tamper-protection).
646+
631647
```yaml
632648
Type: SwitchParameter
633649
Parameter Sets: (All)
@@ -960,12 +976,15 @@ Accept wildcard characters: False
960976

961977
### -DisableIOAVProtection
962978

963-
Specifies whether to enable the scanning of all downloaded files and attachments. You don't need to
979+
Specifies whether to enable the automatic scanning of all downloaded files and attachments. You don't need to
964980
specify a value with this switch.
965981

966982
**Tip**: This switch works only if the current value of the DisableIOAVProtection
967983
property is True (disabled). If the value is already False (enabled), this switch does nothing.
968984

985+
The value True for the DisableIOAVProtection property is available only if Tamper Protection is
986+
disabled. For more information, see [How do I configure or manage Tamper Protection?](https://learn.microsoft.com/defender-endpoint/prevent-changes-to-security-settings-with-tamper-protection#how-do-i-configure-or-manage-tamper-protection).
987+
969988
```yaml
970989
Type: SwitchParameter
971990
Parameter Sets: (All)
@@ -1048,6 +1067,9 @@ property is True (disabled). If the value is already False (enabled), this switc
10481067

10491068
The default and recommended value for this setting is enabled (False).
10501069

1070+
The value True for the DisableRealtimeMonitoring property is available only if Tamper Protection is
1071+
disabled. For more information, see [How do I configure or manage Tamper Protection?](https://learn.microsoft.com/defender-endpoint/prevent-changes-to-security-settings-with-tamper-protection#how-do-i-configure-or-manage-tamper-protection).
1072+
10511073
```yaml
10521074
Type: SwitchParameter
10531075
Parameter Sets: (All)
@@ -1149,6 +1171,9 @@ a value with this switch.
11491171
**Tip**: This switch works only if the current value of the DisableScriptScanning
11501172
property is True (disabled). If the value is already False (enabled), this switch does nothing.
11511173

1174+
The value True for the DisableScriptScanning property is available only if Tamper Protection is
1175+
disabled. For more information, see [How do I configure or manage Tamper Protection?](https://learn.microsoft.com/defender-endpoint/prevent-changes-to-security-settings-with-tamper-protection#how-do-i-configure-or-manage-tamper-protection).
1176+
11521177
```yaml
11531178
Type: SwitchParameter
11541179
Parameter Sets: (All)
@@ -1470,7 +1495,7 @@ exclusions from scheduled, custom, and real-time scanning.
14701495
To remove values without affecting other existing values, use the following syntax:
14711496
`"Extension1","Extension2"..."ExtensionN"`
14721497

1473-
To add values without affecting existing values, use the **Add-MPPreference** cmdlet:
1498+
To add values without affecting existing values, use the **Add-MpPreference** cmdlet:
14741499

14751500
`Add-MpPreference -ExclusionExtension "Extension1","Extension2"..."ExtensionN"`
14761501

@@ -1497,7 +1522,7 @@ real-time scanning.
14971522
To remove values without affecting other existing values, use the following syntax:
14981523
`"IPAddress1","IPAddress2",..."IPAddressN"`
14991524

1500-
To add values without affecting existing values, use the **Add-MPPreference** cmdlet:
1525+
To add values without affecting existing values, use the **Add-MpPreference** cmdlet:
15011526

15021527
`Add-MpPreference -ExclusionIpAddress "IPAddress1","IPAddress",..."IPAddressN"`
15031528

@@ -1525,7 +1550,7 @@ scheduled and real-time scanning.
15251550
To remove values without affecting other existing values, use the following syntax:
15261551
`"Value1","Value2",..."ValueN"`
15271552

1528-
To add values without affecting existing values, use the **Add-MPPreference** cmdlet:
1553+
To add values without affecting existing values, use the **Add-MpPreference** cmdlet:
15291554

15301555
`Add-MpPreference -ExclusionPath "Value1","Value2",..."ValuehN"`
15311556

@@ -1553,7 +1578,7 @@ and real-time scanning.
15531578
To remove values without affecting other existing values, use the following syntax:
15541579
`"Path1","Path2",..."PathN"`
15551580

1556-
To add values without affecting existing values, use the **Add-MPPreference** cmdlet:
1581+
To add values without affecting existing values, use the **Add-MpPreference** cmdlet:
15571582

15581583
`Add-MpPreference -ExclusionProcess "Path1","Path2",..."PathhN"`
15591584

@@ -2640,7 +2665,11 @@ To remove values without affecting other existing values, use the following synt
26402665

26412666
`Remove-MpPreference -ThreatIDDefaultAction_Ids ThreatID1,ThreatID2,...ThreatIDN -ThreatIDDefaultAction_Actions Action1,Action2,...ActionN`
26422667

2643-
To add values without affecting existing values, use the **Add-MPPreference** cmdlet:
2668+
For each ID value, there's a corresponding action value. The order determines which action goes with
2669+
what ID. The first action goes with the first ID, the second action goes with the second ID,
2670+
and so on.
2671+
2672+
To add values without affecting existing values, use the **Add-MpPreference** cmdlet:
26442673

26452674
`Add-MpPreference -ThreatIDDefaultAction_Ids ThreatID1,ThreatID2,...ThreatIDN -ThreatIDDefaultAction_Actions Action1,Action2,...ActionN`
26462675

@@ -2694,6 +2723,10 @@ To remove values without affecting other existing values, use the following synt
26942723

26952724
`Remove-MpPreference -ThreatIDDefaultAction_Ids ThreatID1,ThreatID2,...ThreatIDN -ThreatIDDefaultAction_Actions Action1,Action2,...ActionN`
26962725

2726+
For each ID value, there's a corresponding action value. The order determines which action goes with
2727+
what ID. The first action goes with the first ID, the second action goes with the second ID,
2728+
and so on.
2729+
26972730
To add values without affecting existing values, use the **Add-MpPreference** cmdlet:
26982731

26992732
`Add-MpPreference -ThreatIDDefaultAction_Ids ThreatID1,ThreatID2,...ThreatIDN -ThreatIDDefaultAction_Actions Action1,Action2,...ActionN`

0 commit comments

Comments
 (0)