Edit

Share via


Start-CMAntimalwarePolicyDeployment

(Deprecated) Starts the deployment of an antimalware policy to the members of a Configuration Manager collection.

Syntax

SearchByAntimalwarePolicyValue_CollectionValue (Default)

Start-CMAntimalwarePolicyDeployment
    -AntimalwarePolicy <IResultObject>
    -Collection <IResultObject>
    [-DisableWildcardHandling]
    [-ForceWildcardHandling]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

SearchByAntimalwarePolicyValue_CollectionId

Start-CMAntimalwarePolicyDeployment
    -AntimalwarePolicy <IResultObject>
    -CollectionId <String>
    [-DisableWildcardHandling]
    [-ForceWildcardHandling]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

SearchByAntimalwarePolicyValue_CollectionName

Start-CMAntimalwarePolicyDeployment
    -AntimalwarePolicy <IResultObject>
    -CollectionName <String>
    [-DisableWildcardHandling]
    [-ForceWildcardHandling]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

SearchByAntimalwarePolicyId_CollectionId

Start-CMAntimalwarePolicyDeployment
    -AntimalwarePolicyId <String>
    -CollectionId <String>
    [-DisableWildcardHandling]
    [-ForceWildcardHandling]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

SearchByAntimalwarePolicyId_CollectionName

Start-CMAntimalwarePolicyDeployment
    -AntimalwarePolicyId <String>
    -CollectionName <String>
    [-DisableWildcardHandling]
    [-ForceWildcardHandling]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

SearchByAntimalwarePolicyId_CollectionValue

Start-CMAntimalwarePolicyDeployment
    -AntimalwarePolicyId <String>
    -Collection <IResultObject>
    [-DisableWildcardHandling]
    [-ForceWildcardHandling]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

SearchByAntimalwarePolicyName_CollectionId

Start-CMAntimalwarePolicyDeployment
    -AntimalwarePolicyName <String>
    -CollectionId <String>
    [-DisableWildcardHandling]
    [-ForceWildcardHandling]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

SearchByAntimalwarePolicyName_CollectionName

Start-CMAntimalwarePolicyDeployment
    -AntimalwarePolicyName <String>
    -CollectionName <String>
    [-DisableWildcardHandling]
    [-ForceWildcardHandling]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

SearchByAntimalwarePolicyName_CollectionValue

Start-CMAntimalwarePolicyDeployment
    -AntimalwarePolicyName <String>
    -Collection <IResultObject>
    [-DisableWildcardHandling]
    [-ForceWildcardHandling]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

The Start-CMAntimalwarePolicyDeployment cmdlet starts the deployment of a Microsoft System Center 2016 Endpoint Protection antimalware policy to the members of a Configuration Manager collection.

To start a policy deployment, specify the antimalware policy to be deployed and the device collection that is the destination for the deployment. Specify a policy by name or by ID, or use the Get-CMAntiMalwarePolicy cmdlet to get a policy object. Specify a collection by name or by ID, or use the Get-CMDeviceCollection cmdlet to get a collection object. You can also specify a deployment name to deploy a policy.

Important

Starting in version 2107, this cmdlet is deprecated and may be removed in a future release. Instead use the New-CMAntimalwarePolicyDeployment cmdlet.

Examples

Example 1: Deploy an antimalware policy to a collection by using an ID

PS XYZ:\> Start-CMAntimalwarePolicyDeployment -AntimalwarePolicyName "ExclusionsPolicy" -CollectionId "SMS00023"

This command starts the deployment for a policy named ExclusionsPolicy to a device collection that has the ID SMS00023.

Example 2: Deploy an antimalware policy to a named collection

PS XYZ:\> Start-CMAntimalwarePolicyDeployment -AntimalwarePolicyName "ExclusionsPolicy" -CollectionName "SouthOffice"

This command starts the deployment for a policy named ExclusionsPolicy to a device collection named SouthOffice.

Parameters

-AntimalwarePolicy

Specifies an antimalware policy object in Configuration Manager. To obtain an antimalware policy object, use the Get-CMAntiMalwarePolicy cmdlet.

Parameter properties

Type:IResultObject
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Policy

Parameter sets

SearchByAntimalwarePolicyValue_CollectionValue
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False
SearchByAntimalwarePolicyValue_CollectionId
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False
SearchByAntimalwarePolicyValue_CollectionName
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-AntimalwarePolicyId

Specifies the ID of an antimalware policy.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:PolicyId

Parameter sets

SearchByAntimalwarePolicyId_CollectionId
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
SearchByAntimalwarePolicyId_CollectionName
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
SearchByAntimalwarePolicyId_CollectionValue
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-AntimalwarePolicyName

Specifies the name of an antimalware policy.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:PolicyName

Parameter sets

SearchByAntimalwarePolicyName_CollectionId
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
SearchByAntimalwarePolicyName_CollectionName
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
SearchByAntimalwarePolicyName_CollectionValue
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Collection

Specifies a Configuration Manager device collection object. To obtain a device collection object, use Get-CMDeviceCollection.

Parameter properties

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

Parameter sets

SearchByAntimalwarePolicyValue_CollectionValue
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False
SearchByAntimalwarePolicyId_CollectionValue
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False
SearchByAntimalwarePolicyName_CollectionValue
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-CollectionId

Specifies the ID of a device collection.

Parameter properties

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

Parameter sets

SearchByAntimalwarePolicyValue_CollectionId
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
SearchByAntimalwarePolicyId_CollectionId
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
SearchByAntimalwarePolicyName_CollectionId
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-CollectionName

Specifies the name of a device collection.

Parameter properties

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

Parameter sets

SearchByAntimalwarePolicyValue_CollectionName
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
SearchByAntimalwarePolicyId_CollectionName
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
SearchByAntimalwarePolicyName_CollectionName
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

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

-DisableWildcardHandling

This parameter treats wildcard characters as literal character values. You can't combine it with ForceWildcardHandling.

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

-ForceWildcardHandling

This parameter processes wildcard characters and may lead to unexpected behavior (not recommended). You can't combine it with DisableWildcardHandling.

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet doesn't run.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:wi

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, see about_CommonParameters.

Inputs

Microsoft.ConfigurationManagement.ManagementProvider.IResultObject

Outputs

System.Object