Martin Buist -  IT Blogger
How to prioritize the distribution points for content distribution
Home » How to prioritize the distribution points for content distribution?

How to prioritize the distribution points for content distribution?

Sometimes it is better when distributing a packages or application to all distribution points in sccm ( MEMCM ) to make sure it lands on some DP first, especially with an pull DP construction. This is possible to give some priority to an distribution point. In my case I have 2 Distribution points in Azure and all other locations pull their packages from those. Also we have some big locations we use to image new devices. Those need to have the updated packages asap

How to prioritize the distribution points?

Run the following script on the primary server with PowerShell and do not forget to change the parameter

##    www.martinbuist.com
##    200 = Default Priority
##    300 = Lower than default priority
##    100 = Higher than default priority


$targetDp="\\\\Your distribution point FQDN here" # do not remove the \\\\\
$sdkserver="Your site server FQDN here"
$siteCode="SCM"
$priorityValue = 180 #The lower the number the higher the priority

################ DO NOT EDIT BELOW THIS LINE #################
$dp = gwmi -computer $sdkserver -namespace "root\sms\site_$sitecode" -query "select * from SMS_SCI_SysResUse where RoleName = 'SMS Distribution Point' and NetworkOSPath = '$targetDp'"
 
$props = $dp.Props 
$prop = $props | where {$_.PropertyName -eq "Priority" }
 
Write-Output "Current DistributionPoint Priority = " $prop.Value
 
$prop.Value = $priorityValue
 
Write-Output "Updating the DistributionPoint Priority to = " $priorityValue
 
$dp.Props = $props
$dp.Put()

How to check all distribution point for their priority in content distribution?

Run the following script on the primary server with PowerShell and do not forget to change the parameters

$dpinfo = Get-WmiObject -Query "SELECT NALPath, Priority, SiteCode, TransferRate, Description FROM SMS_DistributionPointInfo" -Namespace "ROOT\SMS\site_SCM" -ComputerName "site server name here" | select NALPath, Priority, SiteCode, TransferRate
$dpinfo | Out-GridView

When running the script a nice grid view will popup with all the information you need

How to prioritize the distribution points for content distribution

Leave a Comment

Add comment

Most Popular Post

Follow Me

Your Header Sidebar area is currently empty. Hurry up and add some widgets.

Contact Us