Import-CMPackage

Imports a Configuration Manager package.

Syntax

Import-CMPackage
      [-Confirm]
      [-DisableWildcardHandling]
      [-ForceWildcardHandling]
      -ImportFilePath <String>
      [-WhatIf]
      [<CommonParameters>]

Description

The Import-CMPackage cmdlet imports a Microsoft System Center Configuration Manager package. You can use this cmdlet to import a package of collections, queries, or reports so that you can later deploy these items to a different location.

Examples

Example 1: Import a package

PS C:\>Import-CMPackage -ImportFilePath "\\Deploy01\ExportPackages"

This command imports a package from the path \\Deploy01\ExportPackages.

Required Parameters

-ImportFilePath

Specifies the Universal Naming Convention (UNC) path for the file package that contains the package that you import. The cmdlet imports all packages that the file package contains.

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

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-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
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False