Close Menu
    Facebook X (Twitter) Instagram
    Sunday, October 12
    X (Twitter) LinkedIn Reddit RSS
    All about Endpoint Management
    • Home
    All about Endpoint Management
    Home»CM2012»SCCM Configmgr powershell to install Distribution Point role on multiple computers

    SCCM Configmgr powershell to install Distribution Point role on multiple computers

    Eswar KonetiBy Eswar KonetiJuly 14, 11:00 am3 Mins Read CM2012 4,808 Views
    Share
    Facebook Twitter LinkedIn Reddit

    Installing the distribution point on workstation or server is straight forward method from console .All you need is ,an account that has local admin rights on remote computer to install IIS components and install DP role.

    To install Distribution point role on remote computer, Open configuration manager ,go to administration node, expand site configuration ,right click on servers and site system role ,choose create site system server and from there ,all self explained.

    Installing DP role on 1 or 2 computers can be done using the console GUI ,but what if you have more than 10 or 50 or 100 computers to install DP ? can you do that manually from the console or use scripting to be done in few min ?

    I recently installed DP role on 100+ workstations across the ASIA region and these 100+ distribution points are tagged under different secondary sites.

    In this post, we will walk through the powershell script to install DP role on N number of computers and pipe the result into log file for reference.

    Script does few things listed below:

    1. It will read the CSV file for computer name,description and site code to which the DP need to be tagged under.

    2.Check if the supplied computer name exist in Active directory or not ,if it is not ,pipe the output into log.

    3.If the computer exist in AD ,check if DP role already installed or not ,if installed ,pipe the output into log.

    4.If DP role not installed ,run the script to initiate the DP role  installation and pipe the output into log.

    Note:The script do not check if the remote computer is online ,offline or issue with firewall ports as these are basic requirements before you run the script. Also script do not create any boundary groups ,no proxy configured.  This script will install DP Role using site server computer account (make sure your SCCM server account is member of local admin group on all remote computers).

    To install DP role, i have used 2 basic commands which are New-CMSiteSystemServer and Add-CMDistributionPoint . To know more about these command and examples ,refer https://docs.microsoft.com/en-us/powershell/sccm/configurationmanager/vlatest/configurationmanager or from the powershell command, you can run get-help New-CMSiteSystemServer

    If you want to install DP role using service account instead of using site server account ,you can do so by editing the script .

    Download the script from Technet Gallary ,extract the content to folder ,edit the dpcomputers.csv to pipe computer name,description and Tsitecode (target sitecode) that you want to tag the DP .

    CSV file format:

    image

    Output:

    image

    Hope it helps.

    Add-CMDistributionPoint configmgr Distribution point role installation using powershell script Install DP role on multiple computers Powershell SCCM script to install DP role
    Share. Twitter LinkedIn Email Facebook Reddit

    Related Posts

    Export Microsoft Entra ID User Authentication Methods to CSV using PowerShell & Microsoft Graph API

    August 13, 2:08 pm

    SCCM SQL Report – Compare Installed Apps on TWO Different Computers

    July 13, 10:35 am

    Exporting Intune Win32 Apps with All Properties Using PowerShell and Microsoft Graph

    June 30, 7:01 pm

    2 Comments

    1. Jeffrey Lawrence Kilmer on May 8, 2022 7:37 PM

      Eswar, is this PowerShell script still available?

      Reply
      • Eswar Koneti on May 11, 2022 11:58 PM

        You can download the powershell script using https://eskonr.com/2021/02/did-you-miss-to-download-your-samples-from-technet-gallery-here-is-how-you-can-do-it/

        Thanks,
        Eswar

        Reply

    Leave a ReplyCancel reply

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

    Sign Up

    Get email notifications for new posts.

    Author

    I’m Eswar Koneti ,a tech enthusiast, security advocate, and your guide to Microsoft Intune and Modern Device Management. My goal? To turn complex tech into actionable insights for a streamlined management experience. Let’s navigate this journey together!

    Support

    Awards

    Archives

    © Copyright 2009-2025 Eswar Koneti, All rights reserved.

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