Close Menu
    Facebook X (Twitter) Instagram
    Trending
    • Workplace Ninja User Group Denmark – April 2026 Meetup
    • Workplace Ninja User Group Denmark March 2026 Meetup
    • Workplace Ninja User Group Denmark February 2026 Meetup
    • Successful Adoption of a “Cloud First” Strategy
    • Speaking at Nordic Virtual Summit
    • Workplace Ninja User Group Denmark February Meetup
    • Workplace Ninja User Group Denmark Meetup – May 2022
    • Workplace Ninja User Group Denmark Meetup – April 2022
    RONNIPEDERSEN.COM
    • Home
    • Enterprise Mobility
      • Configuration Manager
      • Identity and Access
      • Information Protection
      • Intune
    • Cloud and Data Center
      • Data Center Management
      • Group Policy
      • Enterprise Security
      • Hyper-V
      • PowerShell
    • Guides
    • Webcasts
    • Links
    • About
      • Contact me
      • Disclaimer
    RONNIPEDERSEN.COM
    You are at:Home»Enterprise Mobility»Configuration Manager»SCCM 2012 R2: No Source Pull Distribution Point available

    SCCM 2012 R2: No Source Pull Distribution Point available

    4
    By Ronni Pedersen on July 25, 2014 Configuration Manager, Enterprise Mobility, Enterprise Security

    A few weeks ago I was working with a customer on a global SCCM Project where the use of Pull Distribution Points would be a huge benefit to reduce WAN traffic between some of the major sites.

    So we ordered a few new (virtual) servers and installed the Distribution Point Role. Everything looked ok, so we moved on and enabled the Pull Distribution Point option, but we couldn’t specify any source for the Pull Distribution Point.

    I went back to my lab, where I tried to reproduce this behaivor, but in my lab everything worked just fine.

    But my lab was running in HTTP mode and my production was running in HTTPS mode.

    After some searching I found this in the docs:

    “Although a pull-distribution point supports communications over HTTP and HTTPS, when you use the Configuration Manager console, you can only specify source distribution points that are configured for HTTP. You can use the Configuration Manager SDK to specify a source distribution point that is configured for HTTPS.”

    Source: http://technet.microsoft.com/en-us/library/gg712321.aspx#BKMK_DistributionPointConfigurations

     

    Then I started to search for a solution that could help me automate this process for me, and then I found this great script created by an unknown Microsoft PFE, but all credits for the script goes to him Smiley

    Source: http://social.technet.microsoft.com/Forums/en-US/72847bfc-c529-449c-a6b3-d7ce6bfcc8bb/how-to-set-an-https-distribution-point-as-a-source-dp-for-pull-dps?forum=configmanagergeneral

    PULLDPSOURCE.VBS

    Const cSourceDP = "xxxxxxxxxx.domainname.COM"
    Const cTargetDP = "xxxxxxxxxx.domainname.COM"
    Const cServer = "."
    Const cSitecode = "XXX"
    
     Dim NalPAthArray()
     intsize = 0
    
     Set loc = CreateObject("WbemScripting.SWbemLocator")
     Set WbemServices = loc.ConnectServer(cServer,"root\SMS\site_" & cSitecode)
    
     'Connect to the site control file
     Set WbemContext=CreateObject("WbemScripting.SWbemNamedValueSet")
    
     WbemContext.Add "SessionHandle",WbemServices.ExecMethod("SMS_SiteControlFile","GetSessionHandle").SessionHandle
    
     'Refresh our copy of the SiteControlFile
     WbemServices.ExecMethod "SMS_SiteControlFile.Filetype=2,Sitecode=""" & cSitecode & """", "Refresh", , , WbemContext
    
    
    'Retrieve Site Control Item instances
    Set WbemInstEnum = WbemServices.ExecQuery("SELECT * FROM SMS_SCI_SysResUse where RoleName='SMS Distribution Point' and NALpath like '%" & cTargetDP & "%'", , , WbemContext)
    
    For each wbemInst in WbemInstEnum
    Wscript.echo "Rolename: " & wbemInst.RoleName
    wscript.echo "Site Code: " & wbemInst.SiteCode
    ' Here it breaks:  Microsoft VBScript runtime error: Object not a collection
    For Each Prop In wbemInst.Props
    if Prop.PropertyName = "IsPullDP" then 
    wscript.echo "Property Name: " & Prop.PropertyName 
    wscript.echo "Property Value: " & Prop.value
    
    
    Prop.value = "1"
    Prop.Value1 ="0"
    End if
    Next
    
    Set clsNALMethods = WbemServices.Get("SMS_NAL_Methods")
    clsNALMethods.PackNALPath Array("Display=\\" & cSourceDP & "\"), "MSWNET", "\\" & cSourceDP, Array("SMS_SITE=" & cSitecode),NALPath
    
    For Each Propl in WbemInst.PropLists
    if Propl.PropertyListName = "SourceDistributionPoints" then
    wscript.echo "Property List Name: " & PropL.PropertyListName
    wscript.echo "Value: " & NalPath
    
    
    ReDim Preserve NalPAthArray(intSize)
    
    NalPAthArray(intSize) = NalPath
    intSize = intSize + 1
    
    Propl.values = NalPAthArray
    wscript.echo "NalPathArray: 
    " & Join(NalPAthArray)
    End if
    Next
    
    Set SCICompPath = wbemInst.Put_(wbemChangeFlagUpdateOnly, WbemContext)
     Next
    
     'Commit changes to SC
     Set InParams = WbemServices.Get("SMS_SiteControlFile").Methods_("CommitSCF").InParameters.SpawnInstance_
     InParams.SiteCode = cSiteCode
     WbemServices.ExecMethod "SMS_SiteControlFile", "CommitSCF", InParams, , WbemContext
    
     'Release SC
     WbemServices.Get("SMS_SiteControlFile").ReleaseSessionHandle WbemContext.Item("SessionHandle").Value
    
     'Next
     Wscript.echo "Done"

    /Enjoy.

    +Ronni Pedersen

    • Tweet
    • Share 0
    • +1
    • LinkedIn 0

    Related

    Ronni Pedersen
    • Website
    • Facebook
    • X (Twitter)
    • LinkedIn

    My name is Ronni Pedersen and I'm currently working as a Cloud Architect at APENTO in Denmark. My primary focus is Enterprise Client Management solutions, based on technologies like AzureAD, Intune, EMS and System Center Configuration Manager. I'm is also a Microsoft Certified Trainer and Microsoft MVP in Enterprise Mobility.

    Related Posts

    Speaking at Nordic Virtual Summit

    Workplace Ninja User Group Denmark February Meetup

    Speaking at Modern Endpoint Management Summit 2022

    4 Comments

    1. Anders Harder on November 28, 2014 14:52

      Hmm.. it does not work.

      The script even has a line with this:

      ‘ Here it breaks: Microsoft VBScript runtime error: Object not a collection

      Do you have a fix???

      Reply
      • Ronni Pedersen on November 30, 2014 19:28

        I’ve used the script in both my test lab and at a customer without any issues…

        Reply
    2. Anders Harder on December 1, 2014 08:18

      I do not seem to work this script..

      It even says so in the script source code:
      ‘ Here it breaks: Microsoft VBScript runtime error: Object not a collection

      Do you have a work a round?

      Reply
    3. Prajwal Desai on June 20, 2016 10:18

      This script should work, give a try – https://gallery.technet.microsoft.com/Convert-an-SCCM-2012-fbf19a4d#content

      Reply
    Leave A Reply Cancel Reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Follow
    APENTO

    Follow APENTO here:

    Subscribe to Blog via Email

    Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    About
    My name i s Ronni Pedersen and I'm currently working as a Cloud Architect at APENTO in Denmark. My primary focus is Endpoint Management and Security, based on Microsoft technologies. I'm also a Microsoft Certified Trainer and a dual Microsoft MVP in both Security and Windows.
    Recent Posts
    • Workplace Ninja User Group Denmark – April 2026 Meetup
    • Workplace Ninja User Group Denmark March 2026 Meetup
    • Workplace Ninja User Group Denmark February 2026 Meetup
    • Successful Adoption of a “Cloud First” Strategy
    • Speaking at Nordic Virtual Summit
    Archives
    TOP POSTS
    • SCCM 2012 R2: Where is the SMSTS.log located?
    • Missing “UserType” attribute in Azure AD
    • Find the TimeZoneName for your SCCM/MDT Deployments
    • Windows Vista Pre-Build VHD available for download
    • HOW-TO: Sequence applications using App-V 5 for SCCM 2012
    RECENT COMMENTS
    • cOSHi on Missing “UserType” attribute in Azure AD
    • Gus on Pro Tip: Use Ctrl+Alt+D from the Azure Portal to get performance information
    • Sebi on Prepare for Co-Management: Migrate Intune Devices without user affinity
    • Vadim P on SCCM: Failed to Get Client Identity (80004005)
    • TM on Active Directory Based Activation in an multi domain environment
    DISCLAIMER
    The content on this website is presented "as-is" with no guarantees. The use of scripts from this website is at your own risk. Always test before putting something in production! Opinions expressed are my own.
    © 2026 ThemeSphere. Designed by ThemeSphere.

    Type above and press Enter to search. Press Esc to cancel.