Import-CMApplication
Imports an application in Configuration Manager.
Parameter Set: Default
Import-CMApplication -FilePath <String> [-ImportActionType <ImportActionType> {NotSet | Skip | DirectImport | Rename | Overwrite | ImportFail} ] [-Confirm] [-WhatIf] [ <CommonParameters>]
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.
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 |
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 |
Prompts you for confirmation before running the cmdlet.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
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 |
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).
The input type is the type of the objects that you can pipe to the cmdlet.
The output type is the type of the objects that the cmdlet emits.
This command imports an application by using the specified file path.
PS C:\> Import-CMApplication -FilePath "\\Contoso01\CM\Toolbox\Test.zip"