Import-CMApplication

Import-CMApplication

Imports an application in Configuration Manager.

Syntax

Parameter Set: Default
Import-CMApplication -FilePath <String> [-ImportActionType <ImportActionType> {NotSet | Skip | DirectImport | Rename | Overwrite | ImportFail} ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Import-CMApplication cmdlet imports apackage created by the Export-CMApplication cmdlet. A package contains one or more applications and related objects, such as catalogs. If the package contains content, the application package imports the content, or includes a reference to the content.

Parameters

-FilePath<String>

Specifies a file path for the application.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ImportActionType<ImportActionType>

Specifies an import action type for the application. The acceptable values for this parameter are:

-- ImportFail. Application and dependencies will not be imported.
-- NotImport. Map objects due to exact match of scope, version, or name.
-- DirectImport. Import objects.
-- Overwrite. Map objects despite name or scope duplication.
-- Rename. Create new.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

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

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Import an application by file path

This command imports an application by using the specified file path.

PS C:\> Import-CMApplication -FilePath "\\Contoso01\CM\Toolbox\Test.zip"

Export-CMApplication

Get-CMApplication

New-CMApplication

Remove-CMApplication

Resume-CMApplication

Set-CMApplication

Suspend-CMApplication