Get-CMPackage

Gets Configuration Manager packages.

Syntax

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

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
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

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

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

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

Specifies the name of a package.

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