NAME
Get-CMProgram

SYNOPSIS
Returns a program, or all instances of a program.

SYNTAX
Get-CMProgram [[-ComputerName] [<Object>]] [[-PackageID] [<Object>]] [[-Credential] [<Object>]] [<CommonParameters>]


DETAILED DESCRIPTION
Returns a program, or all instances of a program.


PARAMETERS
-ComputerName
ConfigMgr Site Server Name

Required? false
Position? 0
Default value
Accept pipeline input? false
Accept wildcard characters?

-PackageID
Enter PackageID

Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters?

-Credential
Enter Alternate Credentials if required

Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters?

<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug,
-ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable,
-OutBuffer and -OutVariable. For more information, type,
"get-help about_commonparameters".

INPUT TYPE

RETURN TYPE
Returns either an instance, or multiple instances from the SMS_Program Class


NOTES


NAME: Get-CMProgram
AUTHOR: Greg Ramsey
LASTEDIT: 07/07/2009 00:39:05
#Requires -Version 2.0

-------------------------- EXAMPLE 1 --------------------------




Get-CMProgram

-------------------------- EXAMPLE 2 --------------------------




Get-CMProgram MYTESTLABServer
Returns all instances of the SMS_Program Class on MYTESTLABServer

-------------------------- EXAMPLE 3 --------------------------




Get-CMProgram MYTESTLABServer LAB00012
Returns all programs associated to PackageID LAB00012 on MYTESTLABServer

-------------------------- EXAMPLE 4 --------------------------




Get-CMProgram MYTESTLABServer LAB00012 Get-Credential
Prompts for credentials
Get-CMProgram MYTESTLABServer LAB00012 $Cred
uses credentials in $Cred


RELATED LINKS
http://msdn.microsoft.com/en-us/library/cc144361.aspx


Last edited Jul 8, 2009 at 7:15 AM by ramseygr, version 1

Comments

No comments yet.