In my previous blog post,i talked about how to compare 2 distribution points to see if they both have any applications mismatch.This blog post talks about how to distribute the missing apps to the Distribution Point.
I have used basic inbuilt Configmgr powershell commands for this activity,more via here
Note:Use the package names as input file rather Package ID’s.
Below powershell script works for applications,packages,driver packages,boot images and OS images.You need to remove the # tag(to uncomment) to distribute specific package type.
#change the path of psd1
import-module F:\sccm\AdminConsole\bin\ConfigurationManager.psd1
#Change the site Code
cd P01:
$SiteCode = “P01”
#provide the path for list of applications to be distributed
$packages =GC “C:\users\eswar\desktop\pkglist.txt”
$server=‘DPname.eskonr.com’
foreach ($packagename in $packages)
{
#for applications
#Start-CMContentDistribution -ApplicationName “$packagename” -DistributionPointName “$server”#For packages
#Start-CMContentDistribution -PackageName “$packagename” -DistributionPointName “$server”#For Driverpackage names
#Start-CMContentDistribution -DriverPackageName “$packagename” -DistributionPointName “$server”#For Bootimages
#Start-CMContentDistribution -BootImageName “$packagename” -DistributionPointName “$server”#For OSImages
#Start-CMContentDistribution –OperatingSystemImageName “$packagename” -DistributionPointName “$server”#output results
“Pkg:” + $packagename + ” “+ “distributed to” + ” “+ “Server:” +$server | Out-File -FilePath C:\users\eswar\desktop\server-distribute-results.txt -Append
}
download the powershell script from technet Gallery
How to refresh package on many DP’s : http://eskonr.com/2013/09/sccm-configmgr-powershell-script-refresh-package-on-multiple-distribution-points/
Configmgr 2012:Powershell script add packages, applications,Drivers to Distribution Point is a post from: Eswar Koneti's Blog