New-CMTaskSequenceMedia

New-CMTaskSequenceMedia

Creates task sequence media in System Center 2012 Configuration Manager.

構文

Parameter Set: NewBootableMedia
New-CMTaskSequenceMedia -BootableMediaOption -BootImageId <String> -DistributionPointServerName <String> -ManagementPointServerName <String[]> -MediaInputType <MediaInputType> {CDDVD | USB} -MediaMode <MediaMode> {Dynamic | SiteBased} -ProtectPassword <Boolean> [-AllowUnattendedDeployment <Boolean> ] [-CommandDistributionPointServerName <String> ] [-CommandIncludeFile <Boolean> ] [-Commandline <String> ] [-CommandPackageName <String> ] [-CreateMediaSelfCertificate <Boolean> ] [-DriveName <String> ] [-EnablePrestartCommand <Boolean> ] [-EnableUnknownSupport <Boolean> ] [-ExpirationDate <DateTime> ] [-ImportCertificatePassword <SecureString> ] [-ImportCertificatePath <String> ] [-MediaPath <String> ] [-MediaSize <MediaSize> {None | Size4GB | Size650MB | Size8GB | SizeUnlimited} ] [-Password <SecureString> ] [-StartDate <DateTime> ] [-UserDeviceAffinity <UserDeviceAffinityType> {AdministratorApproval | AutoApproval | DoNotAllow} ] [-Variable <Hashtable> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: NewCaptureMedia
New-CMTaskSequenceMedia -BootImageId <String> -CaptureMediaOption -DistributionPointServerName <String> -MediaInputType <MediaInputType> {CDDVD | USB} [-DriveName <String> ] [-MediaPath <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: NewPrestagedMedia
New-CMTaskSequenceMedia -BootImageId <String> -DistributionPointServerName <String> -ManagementPointServerName <String[]> -MediaMode <MediaMode> {Dynamic | SiteBased} -OperatingSystemImageDistributionPointServerName <String> -PrestagedMediaOption -ProtectPassword <Boolean> -TaskSequenceDistributionPointServerName <String[]> -TaskSequenceId <String> [-AllowUnattendedDeployment <Boolean> ] [-ApplicationName <String[]> ] [-Comment <String> ] [-CreatedBy <String> ] [-MediaPath <String> ] [-OperatingSystemImageName <String> ] [-OperatingSystemImagePackageId <String> ] [-PackageDriverName <String[]> ] [-PackageName <String[]> ] [-Variable <Hashtable> ] [-Version <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: NewStandAloneMedia
New-CMTaskSequenceMedia -MediaInputType <MediaInputType> {CDDVD | USB} -ProtectPassword <Boolean> -StandAloneMediaOption -TaskSequenceDistributionPointServerName <String[]> -TaskSequenceId <String> [-AllowUnattendedDeployment <Boolean> ] [-CommandDistributionPointServerName <String> ] [-CommandIncludeFile <Boolean> ] [-Commandline <String> ] [-CommandPackageName <String> ] [-DriveName <String> ] [-EnablePrestartCommand <Boolean> ] [-IncludeApplicationDependencies <Boolean> ] [-MediaPath <String> ] [-MediaSize <MediaSize> {None | Size4GB | Size650MB | Size8GB | SizeUnlimited} ] [-Password <SecureString> ] [-Variable <Hashtable> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The New-CMTaskSequenceMedia cmdlet creates task sequence media in Microsoft System Center 2012 Configuration Manager.

パラメーター

-AllowUnattendedDeployment<Boolean>

Indicates whether you allow unattended operating system deployment, which does not prompt for network configuration or optional task sequences.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-ApplicationName<String[]>

Specifies an array of names of applications included in the task sequence.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-BootableMediaOption

Indicates that bootable media is an option. Bootable media lets you deploy an operating system when the destination computer starts.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-BootImageId<String>

Specifies the ID of the boot image package associated with the task sequence media.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-CaptureMediaOption

Indicates that the task sequences are written to capture media. Capture media contains an operating system image from a reference computer, including a boot image that starts a reference computer, and the task sequence that captures the operating system.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-CommandDistributionPointServerName<String>

Specifies a name for a distribution point server from which the cmdlet acquires the package. The CommandPackageName parameter specifies the package name.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-CommandIncludeFile<Boolean>

Indicates whether to include a file.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-Commandline<String>

Specifies a command line for a task sequence.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-CommandPackageName<String>

Specifies a package name for the command specified by the CommandLine parameter.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-Comment<String>

Specifies a comment for a prestaged media file.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-CreatedBy<String>

Specifies the name of an individual or organization responsible for the creation of the prestaged media.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-CreateMediaSelfCertificate<Boolean>

Indicates whether the media includes a self-signed certificate. Use this parameter only in mixed-mode environments.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-DistributionPointServerName<String>

Specifies a name for a distribution point server.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-DriveName<String>

Specifies a drive name.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-EnablePrestartCommand<Boolean>

Indicates whether to enable a prestart command. A prestart command is a script or executable that runs before the task sequence.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-EnableUnknownSupport<Boolean>

Indicates whether to provision unknown systems for operating system deployment.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-ExpirationDate<DateTime>

Specifies an expiration date, in D.HH:MM:SS format, for bootable media.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-ImportCertificatePassword<SecureString>

Specifies a password for an import certificate, as a secure string. An import certificate is a PKI-issued certificate added to the boot media for client authentication and communication with a System Center 2012 Configuration Manager site.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-ImportCertificatePath<String>

Specifies a path for an import certificate to add to the boot media.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-IncludeApplicationDependencies<Boolean>

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-ManagementPointServerName<String[]>

Specifies an array of names for management point servers.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-MediaInputType<MediaInputType>

Specifies a media input type. Valid values are:

-- CDDVD
-- USB

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-MediaMode<MediaMode>

Specifies a media mode. Valid values are:

-- Dynamic
-- SiteBased

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-MediaPath<String>

Specifies a path to the media.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-MediaSize<MediaSize>

Specifies the size of the media. Valid values are:

-- None
-- Size4GB
-- Size650MB
-- Size8GB
-- SizeUnlimited

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-OperatingSystemImageDistributionPointServerName<String>

Specifies the name of a distribution point server for an operating system image.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-OperatingSystemImageName<String>

Specifies the name of an operating system image.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-OperatingSystemImagePackageId<String>

Specifies the identifier of an operating system image package.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-PackageDriverName<String[]>

Specifies an array of package driver names.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-PackageName<String[]>

Specifies an array of package names.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-Password<SecureString>

Specifies a password, as a secure string.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-PrestagedMediaOption

Indicates that the bootable media image and operating system is written to a hard disk. Prestaged media contains a boot image and the operating system to apply to a destination computer.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-ProtectPassword<Boolean>

Indicates whether to protect the media with a password.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-StandAloneMediaOption

Indicates that the task sequences are written to standalone media, such as DVD or CD.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-StartDate<DateTime>

Specifies a start date and time, in D.HH:MM:SS format.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-TaskSequenceDistributionPointServerName<String[]>

Specifies an array of available distribution point servers for a task sequence.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-TaskSequenceId<String>

Specifies an ID for a task sequence.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-UserDeviceAffinity<UserDeviceAffinityType>

Specifies user device affinity. User device affinity associates users with a destination computer. Valid values are:

-- AdministratorApproval
-- AutoApproval
-- DoNotAllow

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-Variable<Hashtable>

Specifies a task sequence variable. The task sequence variable consists of a name and a value.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-Version<String>

Specifies the version information for the media.

エイリアス

なし

必須?

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: Create task sequence media with the captured media option

The command uses the New-CMTaskSequenceMedia cmdlet to create task sequence media by using the CaptureMediaOption parameter. The command also specifies a value for the MediaPath parameter, and a value for the MediaInputType parameter.

PS C:\> New-CMTaskSequenceMedia -CaptureMediaOption -MediaPath "\\Contoso320\Users\Administrator.Contoso319DOM\Desktop\DD\1.iso" -MediaInputType CDDVD  -BootImageName "Boot" -DistributionPointServerName "Contoso320.Contoso319DOM.NET"

Example 2: Create task sequence media with the standalone media option

The first command creates a mapping and stores the result in the $Group variable.

The second command uses the New-CMTaskSequenceMedia cmdlet to create task sequence media by using the StandAloneMediaOption parameter.

PS C:\> $Group = @{"6"="8";}PS C:\> New-CMTaskSequenceMedia -StandAloneMediaOption -Variable $Group -MediaInputType CDDVD -MediaPath "\\Contoso320\Users\Administrator.Contoso319DOM\Desktop\DD\111 - Copy.iso" -ProtectPassword 0 -TaskSequenceId "CCC0000B" -TaskSequenceDistributionPointServerName "\\Contoso320.Contoso319DOM.NET"

Example 3: Create task sequence media with the bootable media option

The command uses the New-CMTaskSequenceMedia cmdlet to create task sequence media by using the BootableMediaOption parameter.

PS C:\> New-CMTaskSequenceMedia -BootableMediaOption -MediaInputType CDDVD -MediaPath "\\Contoso320\Users\Administrator.Contoso319DOM\Desktop\DD\111 - Copy (6).iso" -MediaMode Dynamic -ProtectPassword 0 -BootImageName "boot" -DistributionPointServerName "Contoso320.Contoso319DOM.NET" -ManagementnPointNetworkOperatingSystemPath "Contoso320.Contoso319DOM.NET"

Example 4: Create task sequence media with the prestaged media option

The command uses the New-CMTaskSequenceMedia cmdlet to create task sequence media by using the PrestagedMediaOption parameter.

PS C:\> New-CMTaskSequenceMedia -PrestagedMediaOption  -MediaMode  Dynamic -MediaPath "\\Contoso320\Users\Administrator.Contoso319DOM\Desktop\DD\2.wim"  -ProtectPassword 0 -TaskSequenceId "CCC0000B"  -BootImageName "boot"  -DistributionPointServerName "Contoso320.Contoso319DOM.NET"  -ManagementnPointNetworkOperatingSystemPath "Contoso320.Contoso319DOM.NET" -OperatingSystemImageDistributionPointServerName "Contoso320.Contoso319DOM.NET"  -TaskSequenceDistributionPointServerName "\\Contoso320.Contoso319DOM.NET"

関連トピック

Get-CMTaskSequence