Export (0) Print
Expand All
Expand Minimize

Get-CMProgram

Updated: September 1, 2013

Applies To: System Center 2012 Configuration Manager SP1

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

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft