Get-CMDeployment
Get-CMDeployment
Gets a summary of Configuration Manager deployments.
Syntax
Parameter Set: SearchByName
Get-CMDeployment [-CollectionName <String> ] [ <CommonParameters>]
Parameter Set: SearchByIdMandatory
Get-CMDeployment -DeploymentId <String> [ <CommonParameters>]
Detailed Description
The Get-CMDeployment cmdlet gets summary information for one or more deployments in Microsoft System Center 2012 Configuration Manager. The cmdlet gets summary information about application, Software Update Management (SUM), or classic program deployments in System Center 2012 Configuration Manager.
Parameters
-CollectionName<String>
Specifies an array of names of Configuration Manager collections to which the deployment is applied.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-DeploymentId<String>
Specifies an array of IDs of deployments.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1: Get deployments by using an ID
This command gets the deployment that has the ID Cm120006.
PS C:\> Get-CMDeployment -DeploymentId "Cm120006"
Example 2: Get deployments by using an name
This command gets the deployment named CMCollect01.
PS C:\> Get-CMDeployment -CollectionName "CMCollect01"