NAME
Show-CMPackage

SYNOPSIS
Returns a Package (Package, Boot Image Package, Software Updates Package, etc), or all instances of all package types.

SYNTAX
Show-CMPackage [[-ComputerName] [<Object>]] [[-PackageID] [<Object>]] [[-Credential] [<Object>]] [<CommonParameters>]


DETAILED DESCRIPTION
Returns a Package (Package, Boot Image Package, Software Updates Package, etc), or all instances of all package types.


PARAMETERS
-ComputerName

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 a package Class


NOTES


NAME: Show-CMPackage
AUTHOR: Greg Ramsey
LASTEDIT: 07/05/2009 10:54:05
#Requires -Version 2.0

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




Show-CMPackage

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




Show-CMPackage MYTESTLABServer
Returns all instances of all package types (SMS_Package, SMS_SoftwareUpdate Package, etc) on MYTESTLABServer

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




Show-CMPackage MYTESTLABServer LAB00012
Returns Package LAB20012 on MYTESTLABServer

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




Show-CMPackage MYTESTLABServer LAB00012 get-credential
Prompts for credentials
Show-CMPackage MYTESTLABServer LAB00012 $Cred
uses credentials in $Cred


RELATED LINKS

Last edited Jul 7, 2009 at 11:41 AM by ramseygr, version 1

Comments

No comments yet.