Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Using DSC Pull server to configure a new pull server

$
0
0

Hello,

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 = '3.0.0.0' 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
{
param([string]$guid,[string]$ComputerName)
Node $ComputerName
{
LocalConfigurationManager
{

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.3.0.0.0 from the server http://server1:8080/PSDSCPullServer/PSDSCPullServer.svc/Module(ConfigurationId="35a8dafb-eb8d-4b19-96c4-33274c7c1445',ModuleName='xPSDesiredStateConfiguration',ModuleVersion='3.0.0.0')/ModuleContent.

Any ideas what I have wrong?

Thanks,

Mike


Viewing all articles
Browse latest Browse all 13067

Trending Articles