Get-CMSoftwareUpdateAutoDeploymentRule

Gets Configuration Manager deployment rules for automatic software updates.

Syntax

Get-CMSoftwareUpdateAutoDeploymentRule
   [-Id] <Int32[]>
   [-DisableWildcardHandling]
   [-Fast]
   [-ForceWildcardHandling]
   [-IsServicingPlan <Boolean>]
   [<CommonParameters>]
Get-CMSoftwareUpdateAutoDeploymentRule [[-Name] ] [-DisableWildcardHandling] [-Fast]
 [-ForceWildcardHandling] [-IsServicingPlan ] []

Description

The Get-CMSoftwareUpdateAutoDeploymentRule cmdlet gets specified Microsoft System Center Configuration Manager deployment rules for automatic software updates.

System Center Configuration Manager uses rules to manage automatic deployment of software updates. When a rule runs, System Center Configuration Manager adds updates that qualify for the rule to a software update group. The System Center Configuration Manager server downloads content files and copies them to distribution points, and then updates client computers.

You can specify rules by ID or by name. You can use this cmdlet to get deployment rules for automatic software updates to use with other cmdlets, such as the Invoke-CMSoftwareUpdateAutoDeploymentRule cmdlet or the Remove-CMSoftwareUpdateAutoDeploymentRule cmdlet.

Examples

Example 1: Get a deployment rule by name

PS C:\> Get-CMSoftwareUpdateAutoDeploymentRule -Name "Weekly Driver Updates"

This command gets a deployment rule named Weekly Driver Updates.

Example 2: Get a deployment rule by ID

PS C:\> Get-CMSoftwareUpdateAutoDeploymentRule -Id "16777217"

This command gets a deployment rule that has the ID 16777217.

Required Parameters

-Id

Specifies an array of IDs for rules for automatic deployment of software updates. This value is the AutoDeploymentID property of the deployment rule object.

Type:Int32[]
Aliases:AutoDeploymentId
Required:True
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-DisableWildcardHandling

Indicates that wildcard handling is disabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Fast

Indicates that the cmdlet does not automatically refresh lazy properties.Lazy properties contain values that are relatively inefficient to retrieve which can cause additional network traffic and decrease cmdlet performance. If lazy properties are not used, this parameter should be specified.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

Indicates that wildcard handling is enabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IsServicingPlan
Type:Boolean
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies a name of a rule for automatic deployment of software updates.

Type:String
Required:False
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False