I’m trying to use RegistrationKey in an LCM configuration for the first time.
I generated a GUID and put it in C:\Program Files\WindowsPowerShell\DscService\RegistrationKeys.txt on my HTTPS pull server running WMF 5.0. I used the same GUID as the value for RegistrationKey in the ConfigurationRepositoryWeb section of my meta-configuration. I ran the configuration with no errors. I confirmed that the GUID is in the .meta.mof file.
When I run Set-DSCLocalConfigurationManager, I get an error that says, “Registration of the Dsc Agent with the server failed” and “Failed to register Dsc Agent with AgentId …”
I confirmed the values in C:\inetpub\wwwroot\PSDSCPullServer\web.config on the pull server as described at the end of these articles:
What am I missing?