After reconfiguring LCM on a server the old agent id is still showing

This topic contains 2 replies, has 2 voices, and was last updated by  TyMac711 2 years, 2 months ago.

  • Author
  • #38454


    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:

    Configuration SampleRegistrationMetaConfig

    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

  • #38466

    Arie H

    Select the entire script from top to bottom without the last 2 lines and run them
    then run the other 2 lines, then check the LCM, is it still the same ?

  • #38467


    Still the same if I got what you said right.... here is the LCM and the AgentId is not the RegistrationKey value in the above config:

    PS C:\WINDOWS\system32> Get-DscLocalConfigurationManager

    ActionAfterReboot : ContinueConfiguration
    AgentId : 461C61B0-FF63-10E7-9712-001BDC049DE2
    AllowModuleOverWrite : True
    CertificateID :
    ConfigurationDownloadManagers : {[ConfigurationRepositoryWeb]ConfigurationManager}
    ConfigurationID :
    ConfigurationMode : ApplyAndAutoCorrect
    ConfigurationModeFrequencyMins : 60
    Credential :
    DebugMode : {NONE}
    DownloadManagerCustomData :
    DownloadManagerName :
    LCMCompatibleVersions : {1.0, 2.0}
    LCMState : Idle
    LCMStateDetail :
    LCMVersion : 2.0
    StatusRetentionTimeInDays : 10
    PartialConfigurations :
    RebootNodeIfNeeded : True
    RefreshFrequencyMins : 30
    RefreshMode : Pull
    ReportManagers : {}
    ResourceModuleManagers : {}
    PSComputerName :

You must be logged in to reply to this topic.