Get-CMAutoDeploymentRuleDeployment

Gets the deployments associated with an automatic deployment rule.

Syntax

Get-CMAutoDeploymentRuleDeployment
   [-Id] <Int32>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMAutoDeploymentRuleDeployment
   [-InputObject] <IResultObject>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMAutoDeploymentRuleDeployment
   [[-Name] <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]

Description

The Get-CMAutoDeploymentRuleDeployment cmdlet gets the deployments associated with an automatic deployment rule.

Examples

Example 1: Get a deployment object for an automatic deployment rule

PS C:\>Get-CMAutoDeploymentRuleDeployment -Name "AutoDeploymentRule01"

This command gets the deployment object for the automatic deployment rule named AutoDeploymentRule01.

Example 2: Get a deployment object for an automatic deployment rule using the pipeline

PS C:\>Get-CMSoftwareUpdateAutoDeploymentRule -Name "TestRule01" | Get-CMAutoDeploymentRuleDeployment

This command gets the automatic deployment rule object named TestRule01 and uses the pipeline operator to pass the object to Get-CMAutoDeploymentRuleDeployment, which gets the deployments associated with the automatic deployment rule named TestRule01.

Required Parameters

-Id

Specifies the ID of the automatic deployment rule associated with the deployment.

Type:Int32
Aliases:AutoDeploymentID
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

Specifies the auto deployment rule object associated with the deployment. To obtain an auto deployment rule object, use the Get-CMSoftwareUpdateAutoDeploymentRule cmdlet.

Type:IResultObject
Aliases:AutoDeploymentRule
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

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

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

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

Specifies the name of the automatic deployment rule associated with the deployment.

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

Outputs

IResultObject#SMS_AdrDeploymentSettings