When you want to setup a new SCCM Distribution Point using Prestage Content, you can use this script to export the Content.

You can run the script multiple times and it will only export the required packages. Old Packages will be removed automatically as well

 

Features

 

Requirements

 

 

Examples

.\Prestage_Exporter_V1.0.ps1 -DPGroup "Export-Test" -SourceDP "DP01.sccm.lab" -PrimarySite "PR01.sccm.lab" -SiteCode "PR1" -ExportPath "D:\Export"

=> Will export all Packages assigned to the DP Group Export-Test to D:\Export.

=> It will connect to the Primary Site PR01.sccm.lab using the SiteCode PR1 and download the content from the DP DP01.SCCM.lab

 

$Packages = "CAS00015","CAS00017"

.\Prestage_Exporter_V1.0.ps1 -Packages $Packages -SourceDP "DP01.sccm.lab" -PrimarySite "PR01.sccm.lab" -SiteCode "PR1" -ExportPath "D:\Export"

=> Will export the Packages CAS00015 and CAS00017 to D:\Export.

=> It will connect to the Primary Site PR01.sccm.lab using the SiteCode PR1 and download the content from the DP DP01.SCCM.lab

 

PS output:

 

Exported files:

 

Let me know what you think!

Cheers,

Stefan Röll | Premier Field Engineer | Germany