I’m really lost with this one.
I have a new PullServer that I’ve setup, and set the pull mode on the client. All the code is attached. Every time an update occurs I get an InternalServerError.
PS C:\dsc> Invoke-CimMethod -ComputerName ClientName -Namespace root/microsoft/windows/desiredstateconfiguration `
>> -Class MSFT_DscLocalConfigurationManager -MethodName PerformRequiredConfigurationChecks `
>> -Arguments @{Flags = [uint32]1} -Verbose
>>
VERBOSE: Performing the operation “Invoke-CimMethod: PerformRequiredConfigurationChecks” on target “MSFT_DscLocalConfigurationManager”.
VERBOSE: Perform operation ‘Invoke CimMethod’ with following parameters, ‘‘methodName’ = PerformRequiredConfigurationChecks,‘className’ =
MSFT_DscLocalConfigurationManager,‘namespaceName’ = root/microsoft/windows/desiredstateconfiguration’.
VERBOSE: An LCM method call arrived from computer ClientName with user sid S-1-5-21-2127521184-1604012920-1887927527-6010656.
Invoke-CimMethod : The attempt to get the action from server
http://10.123.161.202/PSDSCPullServer/PSDSCPullServer.svc/Action(ConfigurationId=‘457ecc54-24ed-4b81-bcc3-21f0f6ec55b5’)/GetAction returned unexpected
response code InternalServerError.
At line:1 char:1
- Invoke-CimMethod -ComputerName ClientName -Namespace root/microsoft/windows/des …
-
+ CategoryInfo : InvalidResult: (root/microsoft/...gurationManager:String) [Invoke-CimMethod], CimException + FullyQualifiedErrorId : WebDownloadManagerGetActionUnsuccessful,Microsoft.PowerShell.DesiredStateConfiguration.Commands.GetDscActionCommand,Microsoft.Ma nagement.Infrastructure.CimCmdlets.InvokeCimMethodCommand + PSComputerName : T10LSPLAB02
VERBOSE: Operation ‘Invoke CimMethod’ complete.
Now per this thread (https://powershell.org/forums/topic/dsc-pull-server-failure/) I ran the Test-xDSCResource -Name xDSCWebService and it returns true.
My config on the Pull Server is:
PS C:\dsc> Get-DscLocalConfigurationManager
AllowModuleOverwrite : False
CertificateID :
ConfigurationID :
ConfigurationMode : ApplyAndMonitor
ConfigurationModeFrequencyMins : 30
Credential :
DownloadManagerCustomData :
DownloadManagerName :
RebootNodeIfNeeded : False
RefreshFrequencyMins : 15
RefreshMode : PUSH
PSComputerName :
My Config on the ClientServer is:
AllowModuleOverwrite : True
CertificateID :
ConfigurationID : 457ecc54-24ed-4b81-bcc3-21f0f6ec55b5
ConfigurationMode : ApplyAndMonitor
ConfigurationModeFrequencyMins : 30
Credential :
DownloadManagerCustomData : {MSFT_KeyValuePair (key = “ServerUrl”), MSFT_KeyValuePair (key =
“AllowUnsecureConnection”)}
DownloadManagerName : WebDownloadManager
RebootNodeIfNeeded : False
RefreshFrequencyMins : 15
RefreshMode : Pull
PSComputerName :
This is a fresh Windows Server 2012 R2 VM and its never had DSC configured on it before. I honestly have no idea where to look from here. Thanks!