Get-CMPhase

Use this cmdlet to get a deployment phase for a specific instance or a phased deployment.

Syntax

Get-CMPhase
   [-Collection <IResultObject>]
   [-CollectionId <String>]
   [-CollectionName <String>]
   [-Id <String>]
   [-InputObject] <IResultObject>
   [-Name <String>]
   [-Order <Int32>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMPhase
   [-Collection <IResultObject>]
   [-CollectionId <String>]
   [-CollectionName <String>]
   [-Id <String>]
   [-Name <String>]
   [-Order <Int32>]
   [-PhasedDeploymentId] <String>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMPhase
   [-Collection <IResultObject>]
   [-CollectionId <String>]
   [-CollectionName <String>]
   [-Id <String>]
   [-Name <String>]
   [-Order <Int32>]
   [-PhasedDeploymentName] <String>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]

Description

Starting in version 2002, use this cmdlet to get a deployment phase for a specific instance or a phased deployment.

Examples

Example 1: Get phase by ID

This example gets the phase by its ID.

Get-CMPhase -Id "66DEDF86-D0CB-457D-88BE-47E3FAC92A47"

Parameters

-Collection

Specify a collection object for the phase.

Type:IResultObject
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-CollectionId

Specify a collection by ID for the phase.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-CollectionName

Specify a collection by name for the phase.

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

Specify the ID of the phase.

Type:String
Aliases:PhaseId
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

Specify the phased deployment object for the phase.

Type:IResultObject
Aliases:PhasedDeployment
Position:0
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-Name

Specify the name of the phased deployment.

Type:String
Aliases:PhaseName
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Order

Specify an integer value for the phase's order.

Type:Int32
Aliases:PhaseOrder
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PhasedDeploymentId

Specify the ID of the phased deployment.

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

Specify the name of the phased deployment.

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

Inputs

Microsoft.ConfigurationManagement.ManagementProvider.IResultObject

Outputs

Microsoft.ConfigurationManager.PhasedDeploymentModel.Phase