Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Get-CMProgram

Updated: February 7, 2014

Applies To: System Center 2012 R2 Configuration Manager

Get-CMProgram

Gets programs in Configuration Manager.

Syntax

Parameter Set: SearchByIdAndName
Get-CMProgram [-PackageId <String> ] [-ProgramName <String> ] [ <CommonParameters>]

Parameter Set: SearchByIdAndNameMandatory
Get-CMProgram -PackageId <String> -ProgramName <String> [ <CommonParameters>]




Detailed Description

The Get-CMProgram cmdlet gets one or more programs in Microsoft System Center 2012 Configuration Manager. Programs are commands that are associated with a System Center 2012 Configuration Manager package. Programs identify the actions that occur when the client receives the client package. You can associate multiple programs with the same package.

Parameters

-PackageId<String>

Specifies the package that contains the program by using an ID.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ProgramName<String>

Specifies the program within the package by using a name.


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.

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 all programs

This command gets all programs in System Center 2012 Configuration Manager.


PS C:\> Get-CMProgram

Example 2: Get a program by using a name and an ID

This command gets the program named ProgramD02 in the package that has the ID ST10000F.


PS C:\> Get-CMProgram -PackageId "ST10000F" -ProgramName "ProgramD02" 

Related topics

 
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.