Get-CMPackage

Gets Configuration Manager packages.

Syntax

Get-CMPackage
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   -Id <String>
   [<CommonParameters>]
Get-CMPackage [-DisableWildcardHandling] [-ForceWildcardHandling] [-Name ] []

Description

The Get-CMPackage cmdlet gets Microsoft System Center Configuration Manager packages. System Center Configuration Manager uses packages to distribute software to clients. You can use the SecuredScopeNames parameter to specify the security scope of a package to get.

Examples

Example 1: Get all packages

PS C:\> Get-CMPackage

This command gets all Configuration Manager packages.

Example 2: Get a package by using an ID

PS C:\> Get-CMPackage -Id "CM100002"

This command gets the program that has the ID CM100002.

Example 3: Get a package by using a name

PS C:\> Get-CMPackage -Name "Configuration Manager Client Package"

This command gets the program named Configuration Manager Client Package.

Required Parameters

-Id

Specifies an array of package IDs.

Type:String
Aliases:PackageId
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-DisableWildcardHandling

Indicates that wildcard handling is disabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

Indicates that wildcard handling is enabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of a package.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False