Skip to content

Commit

Permalink
Merge branch 'main' into patch-3
Browse files Browse the repository at this point in the history
  • Loading branch information
mestew authored Mar 5, 2025
2 parents cd2cb6b + 0476264 commit 97f1731
Show file tree
Hide file tree
Showing 7 changed files with 2,253 additions and 630 deletions.
337 changes: 288 additions & 49 deletions docset/winserver2022-ps/defender/Add-MpPreference.md

Large diffs are not rendered by default.

25 changes: 15 additions & 10 deletions docset/winserver2022-ps/defender/Get-MpPreference.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ title: Get-MpPreference
# Get-MpPreference

## SYNOPSIS
Gets preferences for the Windows Defender scans and updates.

Returns settings and configuration for Windows Defender.

## SYNTAX

Expand All @@ -25,23 +26,27 @@ Get-MpPreference

## DESCRIPTION

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

## EXAMPLES

### Example 1: View the scheduled scan day
### Example 1: View all settings

```powershell
PS C:\> $Preferences = Get-MpPreference
PS C:\> $Preferences.ScanScheduleDay
Get-MpPreference
```

The first command gets the preferences, and then stores them in the **$Preferences** variable.
This example returns all settings for Windows Defender.

### Example 2: View the scheduled scan day

```powershell
Get-MpPreference | Format-List ScanScheduleDay
```

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

## PARAMETERS

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

0 comments on commit 97f1731

Please sign in to comment.