Using DSC Pull server to configure a new pull server

Welcome Forums DSC (Desired State Configuration) Using DSC Pull server to configure a new pull server

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

4 years, 6 months ago.

  • Author
  • #16597

    Points: 0
    Rank: Member


    I'm trying to use the xPSDesiredStateConfiguration resource to configure a new pull server.
    Here is the set up:

    Current pull server set up at: http://server1:8080/PSDSCPullServer/PSDSCPullServer.svc/
    Pull server has version ModuleVersion = '' of xPSDesiredStateConfiguration in this folder c:\Program Files\WindowsPowerShell\Modules\xPSDesiredStateConfiguration (and for fun and troubleshooting) in c:\Program Files\WindowsPowerShell\DscService\Modules\xPSDesiredStateConfiguration

    Set target server to pull mode:
    Configuration SetPullMode
    Node $ComputerName

    ConfigurationMode = 'ApplyAndAutoCorrect'
    ConfigurationID = $guid
    RefreshMode = 'Pull'
    DownloadManagerName = 'WebDownloadManager'
    DownloadManagerCustomData = @{
    ServerUrl = "http://server1:8080/PSDSCPullServer/PSDSCPullServer.svc'"
    AllowUnsecureConnection = 'true' }
    RefreshFrequencyMins = 5
    ConfigurationModeFrequencyMins = 15
    RebootNodeIfNeeded = $true

    $guid = "35a8dafb-eb8d-4b19-96c4-33274c7c1445"
    $PullServers = "newPullServer01"
    $PullServers | %{SetPullMode –guid $guid -ComputerName $_}
    Set-DSCLocalConfigurationManager -Computer $PullServers -Path ./SetPullMode –Verbose

    When the target server connects, it logs the following error:
    Cannot find module xPSDesiredStateConfiguration. from the server http://server1:8080/PSDSCPullServer/PSDSCPullServer.svc/Module(ConfigurationId='35a8dafb-eb8d-4b19-96c4-33274c7c1445',ModuleName='xPSDesiredStateConfiguration',ModuleVersion='')/ModuleContent.

    Any ideas what I have wrong?



  • #16598

    Points: 21
    Rank: Member

    When you configured the current Pull server, where did you set the ModulePath to? That is where the xPSDesiredStateConfiguration Resource needs to live. The Resource also needs to be named like, and you need a Checksum file for the Resource .zip file as well.

  • #16599

    Points: 0
    Rank: Member

    Here is my ModulePath:
    ModulePath = "$env:PROGRAMFILES\WindowsPowerShell\DscService\Modules"

    I have zipped up the folder and called it
    Then I ran: New-DscChecksum "$env:PROGRAMFILES\WindowsPowerShell\DscService\Modules"

    I now have the Zip file and the file in the ModulePath.

    I reran the pull request, and still get the same error.

  • #16600

    Points: 0
    Rank: Member

    Whoops, ok I reread the section from the DSC Book, and see that there is no 'v' in the version.
    I renamed to, reran the pull and now it seems to be working.

    Thanks again.

The topic ‘Using DSC Pull server to configure a new pull server’ is closed to new replies.