Setting up a new DSC pull server

Welcome Forums DSC (Desired State Configuration) Setting up a new DSC pull server

This topic contains 3 replies, has 3 voices, and was last updated by

2 years, 11 months ago.

  • Author
  • #54045

    Topics: 3
    Replies: 17
    Points: 0
    Rank: Member

    I am trying to setup a new DSC pull server in a dev environment.
    The VM does not have internet access.

    I'm finding that I cant run the "Install-Module -Name xPSDesiredStateConfiguration" command because it returns – WARNING:Unable to download the list of available providers. Check your internet connection.

    Is there any way to download and save the module on a computer that has internet access and import it in an offline fashion?

  • #54046

    Topics: 0
    Replies: 102
    Points: 1
    Rank: Member

    Yes it is possible to download the modules on a computer with internet access and then put it on your pull server. Here are the steps:
    1) Download the module using Install-Module cmdlet on a machine with internet access. Powershell will install the module under $env:ProgramFiles\WindowsPowerShell\Modules
    2) Copy the module on your pull server under $env:ProgramFiles\WindowsPowerShell\Modules folder.
    3) Run

    import-module 'C:\Program Files\windowspowershell\modules\xPSDesiredStateConfiguration\\DSCPullServerSetup\PublishModulesAndMofsToPullServer.psm1' 

    4) Use


    cmdlet to publish the module correctly to the pull server.

  • #54049

    Topics: 13
    Replies: 4872
    Points: 1,843
    Helping HandTeam Member
    Rank: Community Hero

    Install-Module is attempting to hit the PowerShell Gallery, so yes, you'd need Internet access. But yes, you can also download the module on any other computer and simply copy its folder.

  • #54228

    Topics: 3
    Replies: 17
    Points: 0
    Rank: Member

    That worked, thanks Don!

The topic ‘Setting up a new DSC pull server’ is closed to new replies.