I think I have followed them but I get a number of different errors depending on which House the planet of Saturn is in.
Before I go into troubleshooting and debugging here, are there any good resources for Configuration Names and Registration Keys? Most of the stuff I find on the internet either just links to the two articles above, or just retype it almost verbatim. Sites, books, articles, blogs? Anything? I’d like a little bit of a deeper dive than the MS links give. Thanks.
Two easy points: First, make sure you’ve got the very latest xPSDesiredStateConfiguration module, as there are known problems with some older versions. Second, what sorta errors are you getting?
VERBOSE: Performing the operation "Start-DscConfiguration: SendMetaConfigurationApply" on target "MSFT_DSCLocalConfigurationManager".
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = SendMetaConfigurationApply,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateCo
nfiguration'.
VERBOSE: An LCM method call arrived from computer NodeName with user sid XXX.
VERBOSE: [NodeName]: LCM: [ Start Set ]
VERBOSE: [NodeName]: LCM: [ Start Resource ] [MSFT_DSCMetaConfiguration]
VERBOSE: [NodeName]: LCM: [ Start Set ] [MSFT_DSCMetaConfiguration]
VERBOSE: [NodeName]: LCM: [ End Set ] [MSFT_DSCMetaConfiguration] in 0.0000 seconds.
VERBOSE: [NodeName]: LCM: [ End Resource ] [MSFT_DSCMetaConfiguration]
VERBOSE: [NodeName]: LCM: [ End Set ]
The specified Property does not exist.
+ CategoryInfo : MetadataError: (root/Microsoft/...gurationManager:String) [], CimException
+ FullyQualifiedErrorId : MI RESULT 12
+ PSComputerName : nodename
VERBOSE: Operation 'Invoke CimMethod' complete.
VERBOSE: Set-DscLocalConfigurationManager finished in 30.332 seconds.
And since this fails if I try to update the configuration for the node I get an error about it not being registered with the pull server, which would expect since something went wrong setting the LCM.
I guess I’d try to start by switching back to ConfigurationID, and removing the registration key from the mix. That actually does help narrow down some of the problem. The thing bothering me is the “property does not exist,” which happens when you send a v5 meta-config to a v4 node. We’ve also seen that error a LOT when it comes to partial configurations (which is when configuration names come into play the most often) - e.g., https://powershell.org/forums/topic/trouble-setting-lcm-for-partial-configurations/.
I have checked all the links out and still no joy. I’ll play around with it and let you know what I come up with it. Also, switching back to ConfigurationID worked just fine.
That sounds for all the world like WMF v5 not being installed properly on the node, then. The local CIM repo is missing some of the new bits that let it save configuration names.
I did a brand new server that has never had an LCM before and this is my new error:
Registration of the Dsc Agent with the server https://PullServername:8080/PSDSCPullServer.svc failed. The underlying error is: The attempt to register Dsc Agent with AgentId 19E48570-5EF5-11E6-813A-12F4B1052F27 with
the server https://PullServerName:8080/PSDSCPullServer.svc/Nodes(AgentId='19E48570-5EF5-11E6-813A-12F4B1052F27') returned unexpected response code NotFound. .
+ CategoryInfo : InvalidResult: (root/Microsoft/...gurationManager:String) [], CimException
+ FullyQualifiedErrorId : RegisterDscAgentUnsuccessful,Microsoft.PowerShell.DesiredStateConfiguration.Commands.RegisterDscAgentCommand
+ PSComputerName : NodeName
The video was good, but didn’t get me there. I made sure my web.config points to the RegistrationKeys.txt and that the GUID used for the key is present.
Paul that looks like the error we were seeing when xPSDesiredStateConfiguration was broken and you couldn’t use Server Core and whatnot. Can you confirm your versions?
Yeah, that one - I don’t know about. You may want to (seriously) considering opening a Product Support ticket with Microsoft. I’ll ping the team and see if someone can look at it, but this’ll likely get into debugging.
Meantime, enable debugging on both machines, try again, and see what the Debug event log says.
Could you send me the client (LCM) and pull server logs please? Below is a script to collect the logs from the client (LCM) and pull server logs. Make sure to run your scenario one more time before capturing the logs.
This a pre-prod network that is inside my companies enterprise. What I shared previously is all that I am allowed to share without ISRM approval. Thank you but I cannot provide logs or zip files. Which is what makes this job so difficult.
When using ConfigurationNames, always use localhost as the node name in your configuration scripts.
This will yield in a localhost.mof
when you then have to rename to say BaseOS.mof and create a checksum for it.
The reason you use localhost is the fact that ‘BaseOS’ can now be the value in the LCM ConfigurationNames for various servers and it will still apply it to the servers as localhost is the server the script is running on.