< Back

Get-MpPreference

Tue Jan 29, 2019 10:14 pm

NAME Get-MpPreference



SYNOPSIS

Gets preferences for the Windows Defender scans and updates.





SYNTAX

Get-MpPreference [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [<CommonParameters>]





DESCRIPTION

The Get-MpPreference cmdlet gets preferences for the Windows Defender scans and updates.





PARAMETERS

-CimSession [<CimSession[]>]

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession

or Get-CimSession cmdlet. The default is the current session on the local computer.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-ThrottleLimit [<Int32>]

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 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.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS









OUTPUTS









Example 1: View the scheduled scan day



PS C:\\> $Preferences = Get-MpPreference

PS C:\\> $Preferences.ScanScheduleDay



The first command gets the preferences, and then stores them in the $Preferences variable.



The second command uses standard dot syntax to display the ScanScheduleDay property of the object stored in the $Preferences variable.







RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkID=317465

Add-MpPreference

Remove-MpPreference

Set-MpPreference