Export-CMApplication

Export-CMApplication

Exports an application from Configuration Manager.

構文

Parameter Set: SearchByNameMandatory
Export-CMApplication -Name <String[]> -Path <String> [-Comment <String> ] [-IgnoreRelated] [-OmitContent] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByIdMandatory
Export-CMApplication -Id <String[]> -Path <String> [-Comment <String> ] [-IgnoreRelated] [-OmitContent] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByValueMandatory
Export-CMApplication -InputObject <IResultObject> -Path <String> [-Comment <String> ] [-IgnoreRelated] [-OmitContent] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Export-CMApplication cmdlet exports an application to a file, and copies the content to a separate folder if OmitContent is false. Specify a file path to the location where you want to export the application.

パラメーター

-Comment<String>

Specifies a comment for the exported application.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Id<String[]>

Specifies an array of IDs for the exported application.

エイリアス

CIId

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-IgnoreRelated

Indicates that related objects, such as application dependencies, superseded applications, or related categories and global conditions, are exported.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-InputObject<IResultObject>

Specifies an application object. To obtain an application object, use the Get-CMApplication cmdlet.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Name<String[]>

Specifies an array of names for the exported application.

エイリアス

LocalizedDisplayName

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-OmitContent

Indicates that the cmdlet exports related content to a separate folder in the same location as the .zip file.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Path<String>

Specifies a path of the package. The package file has a .zip extension.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Confirm

コマンドレットを実行する前に、ユーザーに確認を求めます。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-WhatIf

コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

Example 1: Export an application

This command exports the Configuration Manager application named BL_App_01 to the file named Test.zip.

PS C:\> Export-CMApplication -Name "BL_App_01" -Path "\\Contoso01\CM\Toolbox\Test.zip"

関連トピック

Get-CMApplication

Import-CMApplication

New-CMApplication

Remove-CMApplication

Resume-CMApplication

Set-CMApplication

Suspend-CMApplication