我正在使用DSC来configuration30台服务器。
它们被configuration为使用ApplyAndAutoCorrect进行拉取 。
这通常很好,但随机的,服务器将停止所有的DSC活动。 服务器从不尝试再次进行configuration。
我能解决这个问题的唯一方法就是重新configurationLocalConfigurationManager,但是这很枯燥。
有谁知道我可以如何解决这个问题?
更新
Update-DscConfiguration -Wait -Verbose按预期运行。 问题是它不会自动运行。 我正在通过查看操作事件日志来检查这一点。
Get-DscLocalConfigurationManager输出:
ActionAfterReboot : ContinueConfiguration AgentId : 9F0D574A-C0F5-11E6-80CA-005056B8643D AllowModuleOverWrite : True CertificateID : ConfigurationDownloadManagers : {} ConfigurationID : 64e35e72-6f65-4f44-9b5f-915bfe9d157a ConfigurationMode : ApplyAndAutoCorrect ConfigurationModeFrequencyMins : 15 Credential : DebugMode : {NONE} DownloadManagerCustomData : {MSFT_KeyValuePair (key = "ServerUrl"), MSFT_KeyValuePair (key = "AllowUnsecureConnection")} DownloadManagerName : WebDownloadManager LCMCompatibleVersions : {1.0, 2.0} LCMState : Busy LCMStateDetail : LCM is checking and applying new available configuration on pull server. LCMVersion : 2.0 StatusRetentionTimeInDays : 10 PartialConfigurations : RebootNodeIfNeeded : False RefreshFrequencyMins : 30 RefreshMode : Pull ReportManagers : {} ResourceModuleManagers : {} PSComputerName :
所有的服务器都运行WMF 5
如果'Update-DscConfiguration -wait -verbose'不能下拉configuration,这主要是由于节点已经具有最新的configuration。 DSC不一致运行一贯是神秘的。 你可以粘贴Get-DscLocalConfigurationManager的输出吗? 你使用的是哪个版本的WMF?