Publish-CMPrestageContent

Publish-CMPrestageContent

Publishes files to a distribution point.

構文

Parameter Set: SearchByIdMandatory_Application
Publish-CMPrestageContent -ApplicationId <String[]> -DistributionPointName <String> -FileName <String> [-Description <String> ] [-DisableExportAllDependencies] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByIdMandatory_BootImage
Publish-CMPrestageContent -BootImageId <String[]> -DistributionPointName <String> -FileName <String> [-Description <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByIdMandatory_DeploymentPackage
Publish-CMPrestageContent -DeploymentPackageId <String[]> -DistributionPointName <String> -FileName <String> [-Description <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByIdMandatory_DriverPackage
Publish-CMPrestageContent -DistributionPointName <String> -DriverPackageId <String[]> -FileName <String> [-Description <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByIdMandatory_OperatingSystemImage
Publish-CMPrestageContent -DistributionPointName <String> -FileName <String> -OperatingSystemImageId <String[]> [-Description <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByIdMandatory_OperatingSystemInstaller
Publish-CMPrestageContent -DistributionPointName <String> -FileName <String> -OperatingSystemInstallerId <String[]> [-Description <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByIdMandatory_Package
Publish-CMPrestageContent -DistributionPointName <String> -FileName <String> -PackageId <String[]> [-Description <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByNameMandatory_Application
Publish-CMPrestageContent -ApplicationName <String[]> -DistributionPointName <String> -FileName <String> [-Description <String> ] [-DisableExportAllDependencies] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByNameMandatory_BootImage
Publish-CMPrestageContent -BootImageName <String[]> -DistributionPointName <String> -FileName <String> [-Description <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByNameMandatory_DeploymentPackage
Publish-CMPrestageContent -DeploymentPackageName <String[]> -DistributionPointName <String> -FileName <String> [-Description <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByNameMandatory_DriverPackage
Publish-CMPrestageContent -DistributionPointName <String> -DriverPackageName <String[]> -FileName <String> [-Description <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByNameMandatory_OperatingSystemImage
Publish-CMPrestageContent -DistributionPointName <String> -FileName <String> -OperatingSystemImageName <String[]> [-Description <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByNameMandatory_OperatingSystemInstaller
Publish-CMPrestageContent -DistributionPointName <String> -FileName <String> -OperatingSystemInstallerName <String[]> [-Description <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByNameMandatory_Package
Publish-CMPrestageContent -DistributionPointName <String> -FileName <String> -PackageName <String[]> [-Description <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByValueMandatory_Application
Publish-CMPrestageContent -Application <IResultObject> -DistributionPointName <String> -FileName <String> [-Description <String> ] [-DisableExportAllDependencies] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByValueMandatory_BootImage
Publish-CMPrestageContent -BootImage <IResultObject> -DistributionPointName <String> -FileName <String> [-Description <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByValueMandatory_DeploymentPackage
Publish-CMPrestageContent -DeploymentPackage <IResultObject> -DistributionPointName <String> -FileName <String> [-Description <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByValueMandatory_DriverPackage
Publish-CMPrestageContent -DistributionPointName <String> -DriverPackage <IResultObject> -FileName <String> [-Description <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByValueMandatory_OperatingSystemImage
Publish-CMPrestageContent -DistributionPointName <String> -FileName <String> -OperatingSystemImage <IResultObject> [-Description <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByValueMandatory_OperatingSystemInstaller
Publish-CMPrestageContent -DistributionPointName <String> -FileName <String> -OperatingSystemInstaller <IResultObject> [-Description <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByValueMandatory_Package
Publish-CMPrestageContent -DistributionPointName <String> -FileName <String> -Package <IResultObject> [-Description <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Publish-CMPrestageContent cmdlet publishes files for applications, images, packages, or operating system installers to a distribution point without using the Microsoft System Center 2012 Configuration Manager distribution process. Specify the distribution site, the file name, and the item to publish.

You can specify any of the following to publish to a distribution point:

-- Application
-- BootImage
-- DeploymentPackage
-- DriverPackage
-- OperatingSystemImage
-- OperatingSystemInstaller
-- Package

You can specify the item to be published by name or ID, or use another cmdlet to get the desired item.

パラメーター

-Application<IResultObject>

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

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-ApplicationId<String[]>

Specifies an array of IDs of applications.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-ApplicationName<String[]>

Specifies an array of names of applications.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-BootImage<IResultObject>

Specifies a boot image object. To obtain a boot image object, use the Get-CMBootImage cmdlet.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-BootImageId<String[]>

Specifies an array of IDs of boot images.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-BootImageName<String[]>

Specifies an array of names of boot images.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-DeploymentPackage<IResultObject>

Specifies a deployment package object. To obtain a deployment package object, use the Get-CMDeploymentPackage cmdlet.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-DeploymentPackageId<String[]>

Specifies an array of IDs of deployment packages.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-DeploymentPackageName<String[]>

Specifies an array of names of deployment packages.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-Description<String>

Specifies a description for the content.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-DisableExportAllDependencies

Indicates that Configuration Manager disables all dependencies for the exported content.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-DistributionPointName<String>

Specifies a distribution point for the content.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-DriverPackage<IResultObject>

Specifies a driver package object. To obtain a driver package object, use the Get-CMDriverPackage cmdlet.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-DriverPackageId<String[]>

Specifies an array of IDs of driver packages.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-DriverPackageName<String[]>

Specifies an array of names of driver packages.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-FileName<String>

Specifies a file name for a .pkgx file.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-OperatingSystemImage<IResultObject>

Specifies an operating system image object. To obtain an operating system image object, use the Get-CMOperatingSystemImage cmdlet.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-OperatingSystemImageId<String[]>

Specifies an array of IDs of operating system images.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-OperatingSystemImageName<String[]>

Specifies an array of names of operating system images.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-OperatingSystemInstaller<IResultObject>

Specifies an operating system installer object. To obtain an operating system installer object, use the Get-CMOperatingSystemInstaller cmdlet.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-OperatingSystemInstallerId<String[]>

Specifies an array of IDs of operating system installers.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-OperatingSystemInstallerName<String[]>

Specifies an array of names of operating system installers.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-Package<IResultObject>

Specifies a package object. To obtain a package object, use the Get-CMPackage cmdlet.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-PackageId<String[]>

Specifies an array of IDs of packages.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-PackageName<String[]>

Specifies an array of names of packages.

エイリアス

なし

必須?

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: Publish a package

This command publishes the package that has the ID CM200001 to the specified distribution point as the specified .pkgx file.

PS C:\> Publish-CMPrestageContent -PackageId "CM200001" -DistributionPointName "FileDist02.Western.Contoso.com" -FileName "C:\Users\admin\Documents\Package.pkgx"

Example 2: Publish a boot image

This command publishes the boot image that has the ID CM200005 to the specified distribution point as the specified .pkgx file.

PS C:\> Publish-CMPrestageContent -BootImageId "CM200005" -DistributionPointName "FileDist02.Western.Contoso.com" -FileName "C:\Users\admin\Documents\BootImage.pkgx"

Example 3: Publish a driver package

This command publishes the driver package that has the ID CM20000F to the specified distribution point as the specified .pkgx file.

PS C:\> Publish-CMPrestageContent -DriverPackageId "CM20000F" -DistributionPointName "FileDist02.Western.Contoso.com" -FileName "C:\Users\admin\Documents\DriverPackage.pkgx"

Example 4: Publish an operating system image

This command publishes the operating system image that has the ID CM200006 to the specified distribution point as the specified .pkgx file.

PS C:\> Publish-CMPrestageContent -OperatingSystemImageId "CM200006" -DistributionPointName "FileDist02.Western.Contoso.com" -FileName "C:\Users\admin\Documents\OSImage.pkgx"

Example 5: Publish an operating system installer

This command publishes the operating system installer that has the ID CM200017 to the specified distribution point as the specified .pkgx file.

PS C:\> Publish-CMPrestageContent -OperatingSystemInstallerId "CM200017" -DistributionPointName "FileDist02.Western.Contoso.com" -FileName "C:\Users\admin\Documents\OSInstaller.pkgx"

関連トピック

Get-CMApplication

Get-CMBootImage

Get-CMDeploymentPackage

Get-CMDriverPackage

Get-CMOperatingSystemImage

Get-CMOperatingSystemInstaller

Get-CMPackage