LCM settings

Common settings that you will configure are listed in the following table. There are more settings available, which can be viewed at https://docs.microsoft.com/en-us/powershell/dsc/metaconfig, but these are the ones that are most useful to know right away:

Setting Description
AllowModuleOverwrite Allows or disallows DSC resources to be overwritten on the target node. This applies to the DSC pull server use only.
ConfigurationMode Determines the type of operations to perform on this host. For example, if set to ApplyAndAutoCorrect and if the current state does not match the desired state, then DSC applies the corrections needed.
ConfigurationModeFrequencyMins The interval in minutes to check whether there is configuration drift.
RebootNodeIfNeeded Automatically reboot the server if configuration requires it when applied.
RefreshFrequencyMins Determines how often to check for a new configuration when LCM is attached to a pull server.
RefreshMode Determines which deployment mode the target is in, push or pull.

 

The LCM comes with most of these settings set to logical defaults to allow DSC to operate out of the box. You can check what is currently set by issuing the following Get-DscLocalConfigurationManager cmdlet:

    PS C:Examples> Get-DscLocalConfigurationManager

ActionAfterReboot : ContinueConfiguration
AllowModuleOverwrite : False
CertificateID :
ConfigurationID :
ConfigurationMode : ApplyAndMonitor
ConfigurationModeFrequencyMins : 15
Credential :
DebugMode : {NONE}
DownloadManagerCustomData :
DownloadManagerName :
LCMCompatibleVersions : {1.0}
LCMState : Idle
LCMVersion : 1.0
RebootNodeIfNeeded : False
RefreshFrequencyMins : 30
RefreshMode : PUSH
PSComputerName :
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset