Movatterモバイル変換


[0]ホーム

URL:


Skip to main contentSkip to in-page navigation

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit editor mode

Get-MpPreference

    Gets preferences for the Windows Defender scans and updates.

    Syntax

    Default (Default)

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

    Description

    TheGet-MpPreference cmdlet gets preferences for the Windows Defender scans and updates. For moreinformation about the preferences that this cmdlet retrieves, seeWindows Defender Preferences Class.

    Examples

    Example 1: View the scheduled scan day

    PS C:\> $Preferences = Get-MpPreferencePS 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 theScanScheduleDay property of theobject stored in the$Preferences variable.

    Parameters

    -AsJob

    Runs the cmdlet as a background job. Use this parameter to run commands that take a long time tocomplete.

    The cmdlet immediately returns an object that represents the job and then displays the commandprompt. You can continue to work in the session while the job completes. To manage the job, use the*-Job cmdlets. To get the job results, use theReceive-Job cmdlet.

    For more information about Windows PowerShell background jobs, seeabout_Jobs.

    Parameter properties

    Type:SwitchParameter
    Default value:None
    Supports wildcards:False
    DontShow:False

    Parameter sets

    (All)
    Position:Named
    Mandatory:False
    Value from pipeline:False
    Value from pipeline by property name:False
    Value from remaining arguments:False

    -CimSession

    Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a sessionobject, such as the output of aNew-CimSessionorGet-CimSession cmdlet. The default is thecurrent session on the local computer.

    Parameter properties

    Type:

    CimSession[]

    Default value:None
    Supports wildcards:False
    DontShow:False
    Aliases:Session

    Parameter sets

    (All)
    Position:Named
    Mandatory:False
    Value from pipeline:False
    Value from pipeline by property name:False
    Value from remaining arguments:False

    -ThrottleLimit

    Specifies the maximum number of concurrent operations that can be established to run the cmdlet. Ifthis parameter is omitted or a value of0 is entered, then Windows PowerShell® calculates anoptimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on thecomputer. The throttle limit applies only to the current cmdlet, not to the session or to thecomputer.

    Parameter properties

    Type:Int32
    Default value:None
    Supports wildcards:False
    DontShow:False

    Parameter sets

    (All)
    Position:Named
    Mandatory:False
    Value from pipeline:False
    Value from pipeline by property name:False
    Value from remaining arguments:False

    CommonParameters

    This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, seeabout_CommonParameters.

    Related Links


    Feedback

    Was this page helpful?

    YesNoNo

    Need help with this topic?

    Want to try using Ask Learn to clarify or guide you through this topic?

    Suggest a fix?

    In this article

    Was this page helpful?

    YesNo
    NoNeed help with this topic?

    Want to try using Ask Learn to clarify or guide you through this topic?

    Suggest a fix?