I have created a DSC to prepare a server to host Active Director Group Policy Management. As we’re moving to using DSC to maintain configurations of servers this seemed an easy one. There are a handful of features that are required for the service as well as a handful that we want on the system. Additionally I need to make sure there is an archive folder, and that the windows\temp directory is available.
I have set ensure=present to all features I need and ensure=absent to all features I don’t need. What I see is that my machine want’s to reboot all the time. The output below shows that the server state is pending reboot, and when I reboot the server, it goes back and re-applies the configuration and then needs to reboot again.
I’m not sure what the issue is considering that all features required are in fact installed and the directories I need are present. I’m very open to any suggestions that anyone has.
This the LCM
PS C:\Windows\system32> Get-DscLocalConfigurationManager
ActionAfterReboot : ContinueConfiguration
AllowModuleOverwrite : False
CertificateID :
ConfigurationID :
ConfigurationMode : ApplyAndMonitor
ConfigurationModeFrequencyMins : 15
Credential :
DebugMode : {NONE}
DownloadManagerCustomData :
DownloadManagerName :
LCMCompatibleVersions : {1.0}
LCMState : PendingReboot
LCMVersion : 1.0
RebootNodeIfNeeded : False
RefreshFrequencyMins : 30
RefreshMode : PUSH
PSComputerName :
On this system RebootNodeIfNeeded is set to false, so it doesn’t bounce, on my test system this is set to true and that server reboots every few minutes or so.