Skip to content

Commit adc6ef3

Browse files
authored
Merge branch 'main' into patch-5
2 parents 1918344 + 21fdc9e commit adc6ef3

File tree

11 files changed

+2285
-672
lines changed

11 files changed

+2285
-672
lines changed

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

Lines changed: 288 additions & 49 deletions
Large diffs are not rendered by default.

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.

0 commit comments

Comments
 (0)