In my DSC config I am using both the Registry Resource and Script resource that adds registry keys. How can I ensure that the server reboots if DSC adds/removes a key if needed as specified in those sections. I have the ‘RebootNodeIfNeeded’ set in the LCM and I don’t see how to incorporate the xPendingReboot module to tie into these changes.
For the script modules I suppose I could just add a line of code to reboot in the ‘Set Script’ section but am not sure if that is the best way. Still, how can I handle the registry resource parts?
Any advice and guidance is greatly appreciated.