ConfigMgr SCCM Prestage Packages to a Remote DP Using Powershell Script Endpoint Manager. In SCCM 2007, I used to ship USB drives with PCK files to different geographical locations to preload the content (packages) onto secondary sites.
That was achieved using preloadpkgonsite.exe (The Preload Package Tool). In SCCM 2012, the above-mentioned preloadpkgonsite.exe won’t work. So we should have another solution.
ConfigMgr SCCM Prestage Packages to a Remote DP Using Powershell Script
One thing we can utilize is to pull DP but my first experience with PULL DP is not very exciting. There is scope for improvement:). I’m going to share a very useful script by Ken Smith (PFE). This script is very helpful to preload the packages/content in SCCM 2012 to remote DPs. Read his full post from here.
Author
Anoop is Microsoft MVP! He is a Solution Architect in enterprise client management with more than 20 years of experience (calculation done in 2021) in IT. He is a blogger, Speaker, and Local User Group HTMD Community leader. His main focus is on Device Management technologies like SCCM 2012, Current Branch, and Intune. E writes about ConfigMgr, Windows 11, Windows 10, Azure AD, Microsoft Intune, Windows 365, AVD, etc…
PS C:\>.\CloneDP.ps1 -Prestage -SourceDP sccm01.contoso.com -TargetDP
DP01.contoso.com -ContentShare \\dp01.contoso.com\c$\pkgx
$DeploymentPackages = Get-CMDeploymentPackage -DistributionPointName $SourceDP
$command = "Publish-CMPrestageContent "
Switch ($DeploymentPackage.ObjectTypeID) {
2 { $command += "-PackageID $($DeploymentPackage.PackageID) " }
14 { $command += "-OperatingSystemInstallerId $($DeploymentPackage.PackageID) "}
18 { $command += "-OperatingSystemImageId $($DeploymentPackage.PackageID) "}
19 { $command += "-BootImageId $($DeploymentPackage.PackageID) "}
23 { $command += "-DriverPackageID $($DeploymentPackage.PackageID) "}
24 { $command += "-DeploymentPackageID $($DeploymentPackage.PackageID) "}
31 { $command += "-ApplicationName '$($DeploymentPackage.Name)' "}
}
Name | PackageType |
Package | 2 |
Driver Package | 23 |
Task Sequence Package | 20 |
Software Updates Package | 24 |
Device Setting Package | 21 |
Virtual App | 31 |
Application | 31 |
Image Package | 18 |
Boot Image Package | 19 |
Operating System Install Package | 14 |
$command += "-FileName '$($env:TEMP)\$($DeploymentPackage.PackageID).pkgx'” `
+ “ -DistributionPointName $($SourceDP)"
Hi Anoop,
i heared about you from jaydeep and Anil who worked with you at CSC.i have an issue iwth package distribution put the question under
http://social.technet.microsoft.com/Forums/en-US/198a15c2-916a-4868-8318-a89bd8655298/in-our-secondary-server-packages-are-not-showing-after-1902?forum=configmgrswdist ,please have a look and if any idea please let me know…:)