Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Publish-CMPrestageContent

Updated: September 1, 2013

Applies To: System Center 2012 Configuration Manager SP1

Publish-CMPrestageContent

Publishes files to a distribution point.

Syntax

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>]




Detailed Description

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.

Parameters

-Application<IResultObject>

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


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ApplicationId<String[]>

Specifies an array of IDs of applications.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ApplicationName<String[]>

Specifies an array of names of applications.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-BootImage<IResultObject>

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


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-BootImageId<String[]>

Specifies an array of IDs of boot images.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-BootImageName<String[]>

Specifies an array of names of boot images.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DeploymentPackage<IResultObject>

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


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DeploymentPackageId<String[]>

Specifies an array of IDs of deployment packages.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DeploymentPackageName<String[]>

Specifies an array of names of deployment packages.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Description<String>

Specifies a description for the content.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DisableExportAllDependencies

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


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DistributionPointName<String>

Specifies a distribution point for the content.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DriverPackage<IResultObject>

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


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DriverPackageId<String[]>

Specifies an array of IDs of driver packages.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DriverPackageName<String[]>

Specifies an array of names of driver packages.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-FileName<String>

Specifies a file name for a .pkgx file.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-OperatingSystemImage<IResultObject>

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


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-OperatingSystemImageId<String[]>

Specifies an array of IDs of operating system images.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-OperatingSystemImageName<String[]>

Specifies an array of names of operating system images.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-OperatingSystemInstaller<IResultObject>

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


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-OperatingSystemInstallerId<String[]>

Specifies an array of IDs of operating system installers.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-OperatingSystemInstallerName<String[]>

Specifies an array of names of operating system installers.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Package<IResultObject>

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


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-PackageId<String[]>

Specifies an array of IDs of packages.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-PackageName<String[]>

Specifies an array of names of packages.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before executing the command.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Describes what would happen if you executed the command without actually executing the command.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

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"

Related topics

 
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.