Hi Folks,
I’m building my first PowerShell DSC pull server pilot. When trying to setup the client to perform its first pull I get the connection error below. Here’s what works:
- From the client I have successfully pulled up the pull server URL (shows the service is responsive and listening)
- Established a PowerShell remoting session to the Pull Server from the client
- Performed ‘winrm id’ (authenticated and unauthenticated)
- Verified that the client’s network interface is not set to ‘public’
- wsman/config/client TrustedHosts=“*” (but I think the successful PowerShell remoting shows that WinRM is not the issue).
Any ideas?
Here’s the client script.
Configuration SetPullMode
{
param([string]$guid)
Node cheftest
{
LocalConfigurationManager
{
ConfigurationMode = 'ApplyOnly'
ConfigurationID = $guid
RefreshMode = 'Pull'
DownloadManagerName = 'WebDownloadManager'
DownloadManagerCustomData = @{
ServerUrl = 'http://mypullserver.net:80/PSDSCPullServer.svc';
AllowUnsecureConnection = 'true' }
}
}
}
SetPullMode –guid $guid
Set-DSCLocalConfigurationManager -Computer cheftest -Path ./SetPullMode –Verbose
With the output:
Directory: C:\temp\SetPullMode
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 12/1/2014 3:30 PM 1704 cheftest.meta.mof
VERBOSE: Performing the operation "Start-DscConfiguration: SendMetaConfigurationApply" on ta
rget "MSFT_DSCLocalConfigurationManager".
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = Sen
dMetaConfigurationApply,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' = ro
ot/Microsoft/Windows/DesiredStateConfiguration'.
The client cannot connect to the destination specified in the request. Verify that the
service on the destination is running and is accepting requests. Consult the logs and
documentation for the WS-Management service running on the destination, most commonly IIS
or WinRM. If the destination is the WinRM service, run the following command on the
destination to analyze and configure the WinRM service: "winrm quickconfig".
+ CategoryInfo : ConnectionError: (root/Microsoft/...gurationManager:String)
[], CimException
+ FullyQualifiedErrorId : HRESULT 0x80338012
+ PSComputerName : cheftest
VERBOSE: Operation 'Invoke CimMethod' complete.
VERBOSE: Set-DscLocalConfigurationManager finished in 8.191 seconds.
BTW, this forum and ‘The DSC Book’ have been very very helpful! ![]()