Import-CMPackage

Imports a Configuration Manager package.

Syntax

Import-CMPackage
      -ImportFilePath <String>
      [-ImportActionType <ImportActionType>]
      [-DisableWildcardHandling]
      [-ForceWildcardHandling]
      [-WhatIf]
      [-Confirm]
      [<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
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
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-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
-ImportActionType
Type:ImportActionType
Parameter Sets:NotSet, Skip, DirectImport, Rename, Overwrite, ImportFail, IgnoreDependencyFailure, AppendDriverCategories, OverwriteIgnoreDependencyFailure
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
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False