-
How to setup Debug Mode in Windows PowerShell Desired State Configuration (DSC)
If you work on custom DSC resources then debug mode is very handy for you because you may need to re-import your updated DSC resource again and again. Without re-import (force import) the DSC uses cache. How to set DebugMode: None Signifies that DebugMode is False and not applicable. ForceModuleImport Enforce the resource module to…
-
Simplify your PowerShell DSC Configurations by using parameterized DSC Resources
Often I can see that DSC adopters use similar code: Configuration TooVerbose { Import-DscResource -ModuleName PSDesiredStateConfiguration Service abc { Name = ‘abc’ State = ‘Running’ Ensure = ‘Present’ } Service def { Name = ‘abc’ State = ‘Running’ Ensure = ‘Present’ } Service xyz { Name = ‘abc’ State = ‘Running’ Ensure = ‘Present’ }…