I reconfigured a server with a new agent id (guid) but after running Set-DscLocalConfigurationManager and Update-DscConfiguration -wait -Verbose I’m still seeing the old agent id when i run Get-DSCLocalConfigurationManager. The interesting part is Set-DscLocalConfigurationManager ran without any errors and appears to be working fine with the new .mof i created for the server to work with. I bugs me to see the old agent id string still showing up… any ideas why? The old agent id is not in the RestrationKeys.txt file and this is with WMF5.
Here is the LCM script config:
[DSCLocalConfigurationManager()]
Configuration SampleRegistrationMetaConfig
{
Settings
{
RefreshFrequencyMins = 30;
RefreshMode = "PULL";
ConfigurationMode = "ApplyAndAutoCorrect";
AllowModuleOverwrite = $true;
RebootNodeIfNeeded = $true;
ConfigurationModeFrequencyMins = 60;
}
ConfigurationRepositoryWeb ConfigurationManager
{
ServerURL = "http://protoss:8080/PSDSCPullServer.svc"
RegistrationKey = "6eea789e-17ff-42e1-80e9-fc249c4fca2b"
ConfigurationNames = @("BaseLineConfig")
AllowUnsecureConnection = $true
}
}
SampleRegistrationMetaConfig -outputpath C:\dsc
Set-DscLocalConfigurationManager -Path C:\dsc -Verbose