Export-CMTaskSequence

Export-CMTaskSequence

Exports a Configuration Manager task sequence.

構文

Parameter Set: SearchPackageByNameMandatory
Export-CMTaskSequence -ExportFilePath <String> -Name <String> [-Comments <String> ] [-WithContent <Boolean> ] [-WithDependence <Boolean> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByValueMandatory
Export-CMTaskSequence -ExportFilePath <String> -InputObject <IResultObject> [-Comments <String> ] [-WithContent <Boolean> ] [-WithDependence <Boolean> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchPackageByIdMandatory
Export-CMTaskSequence -ExportFilePath <String> -TaskSequencePackageId <String[]> [-Comments <String> ] [-WithContent <Boolean> ] [-WithDependence <Boolean> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Export-CMTaskSequence cmdlet exports a Microsoft System Center 2012 Configuration Manager task sequence to a .zip file.

パラメーター

-Comments<String>

Specifies a comment in Configuration Manager.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-ExportFilePath<String>

Specifies a path to the exported ZIP file in Configuration Manager.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-InputObject<IResultObject>

Specifies a task sequence object. To obtain a task sequence object, use the Get-CMTaskSequence cmdlet.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-Name<String>

Specifies a name for the task sequence in Configuration Manager.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-TaskSequencePackageId<String[]>

Specifies an array of IDs of task sequences.

エイリアス

PackageId

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-WithContent<Boolean>

Indicates whether to include content associated with the task sequence in the export ZIP file. If you specify a value for $True, the cmdlet copies the content from the package source to the export location, and the Import Task Sequence Wizard uses the import path as the new package source location.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-WithDependence<Boolean>

Indicates whether to include dependencies in the export ZIP file. Specify a value of $True to scan for all the related objects and export them with the task sequence, including any dependencies for applications. To export only the task sequence XML without the other referenced objects, set this parameter to $False.

エイリアス

なし

必須?

false

位置は?

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 a task sequence to a file

This command exports a sequence of tasks to a file and specifies an export file path.

PS C:\> Export-CMTaskSequence -Name "Task Sequence 1210" -ExportFilePath "\\Contoso-01\Users\AimeeLott\Desktop\TaskSequence.zip"

関連トピック

Disable-CMTaskSequence

Enable-CMTaskSequence

Get-CMTaskSequence

Import-CMTaskSequence

Remove-CMTaskSequence

Set-CMTaskSequence