{"id":1711,"date":"2014-04-22T12:18:00","date_gmt":"2014-04-22T12:18:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/powershell\/2014\/04\/22\/debug-mode-in-desired-state-configuration\/"},"modified":"2019-02-18T13:05:20","modified_gmt":"2019-02-18T20:05:20","slug":"debug-mode-in-desired-state-configuration","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/debug-mode-in-desired-state-configuration\/","title":{"rendered":"Debug Mode in Desired State Configuration"},"content":{"rendered":"<div class=\"WordSection1\">\n<p class=\"MsoNormal\">The DSC engine caches resources implemented as a PowerShell module for efficiency purposes. This can sometimes turn out to be annoying, when you are authoring a resource and testing it simultaneously. The only way to cause DSC to load the newer version every time is to explicitly kill the process hosting the DSC engine.<\/p>\n<p class=\"MsoNormal\">As part of the <a href=\"http:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=42316\">WMF5 CTP release<\/a>, we have introduced a new property for configuring the DSC Local Configuration Manager (LCM) called the <span class=\"SpellE\"><strong>DebugMode<\/strong><\/span>. When set to true, it causes the engine to reload the PowerShell DSC resource. Once you are done writing your resource, you can set it back to false and the engine will revert to its behavior of caching the modules.<\/p>\n<p class=\"MsoNormal\">Here is a demonstration of using the <span class=\"SpellE\">DebugMode<\/span>:<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">PS C:\\Users\\WinVMAdmin\\Desktop&gt; Get-<span class=\"SpellE\">DscLocalConfigurationManager<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">&nbsp;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">&nbsp;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span class=\"SpellE\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">AllowModuleOverwrite<\/span><\/span><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : False<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span class=\"SpellE\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">CertificateID<\/span><\/span><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;: <\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span class=\"SpellE\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">ConfigurationID<\/span><\/span><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : <\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span class=\"SpellE\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">ConfigurationMode<\/span><\/span><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : <span class=\"SpellE\">ApplyAndMonitor<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span class=\"SpellE\"><span class=\"GramE\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">ConfigurationModeFrequencyMins<\/span><\/span><\/span><span class=\"GramE\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\"> :<\/span><\/span><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\"> 30<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">Credential&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : <\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span class=\"SpellE\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: yellow\">DebugMode<\/span><\/span><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: yellow\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : False<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span class=\"SpellE\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">DownloadManagerCustomData<\/span><\/span><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : <\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span class=\"SpellE\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">DownloadManagerName<\/span><\/span><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: <\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span class=\"SpellE\"><span class=\"GramE\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">LocalConfigurationManagerState<\/span><\/span><\/span><span class=\"GramE\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\"> :<\/span><\/span><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\"> Ready<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span class=\"SpellE\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">RebootNodeIfNeeded<\/span><\/span><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : False<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span class=\"SpellE\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">RefreshFrequencyMins<\/span><\/span><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 15<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span class=\"SpellE\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">RefreshMode<\/span><\/span><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : PUSH<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span class=\"SpellE\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">PSComputerName<\/span><\/span><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp; <\/span><\/p>\n<p class=\"MsoNormal\">&nbsp;<\/p>\n<p class=\"MsoNormal\">To begin with, it is false (by default).<\/p>\n<p class=\"MsoNormal\">For the purpose of demonstration, we will be using the following PowerShell resource:<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span class=\"GramE\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkblue\">function<\/span><\/span><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\"> <span style=\"color: blueviolet\">Get-<span class=\"SpellE\">TargetResource<\/span><\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">&nbsp;&nbsp;&nbsp; <span class=\"SpellE\"><span class=\"GramE\"><span style=\"color: darkblue\">param<\/span><\/span><\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">&nbsp;&nbsp;&nbsp; (<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style=\"color: darkgray\">[<\/span><span class=\"GramE\"><span style=\"color: deepskyblue\">Parameter<\/span>(<\/span>Mandatory)<span style=\"color: darkgray\">]<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style=\"color: orangered\">$<span class=\"SpellE\">onlyProperty<\/span><\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">&nbsp;&nbsp;&nbsp; )<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">&nbsp;&nbsp;&nbsp; <span class=\"GramE\"><span style=\"color: darkblue\">return<\/span><\/span> @{<span class=\"SpellE\">onlyProperty<\/span> <span style=\"color: darkgray\">=<\/span> <span style=\"color: blue\">Get-Content<\/span> <span style=\"color: navy\">-path<\/span> <span style=\"color: darkred\">&#8220;<\/span><span style=\"color: orangered\">$<span class=\"SpellE\">env:SystemDrive<\/span><\/span><span style=\"color: darkred\">\\OutputFromTestProviderDebugMode.txt&#8221;<\/span>}<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">}<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span class=\"GramE\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkblue\">function<\/span><\/span><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\"> <span style=\"color: blueviolet\">Set-<span class=\"SpellE\">TargetResource<\/span><\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">&nbsp;&nbsp;&nbsp; <span class=\"SpellE\"><span class=\"GramE\"><span style=\"color: darkblue\">param<\/span><\/span><\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">&nbsp;&nbsp;&nbsp; (<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style=\"color: darkgray\">[<\/span><span class=\"GramE\"><span style=\"color: deepskyblue\">Parameter<\/span>(<\/span>Mandatory)<span style=\"color: darkgray\">]<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style=\"color: orangered\">$<span class=\"SpellE\">onlyProperty<\/span><\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">&nbsp;&nbsp;&nbsp; )<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">&nbsp;&nbsp;&nbsp; <span style=\"color: darkred\">&#8220;1&#8221;<\/span><span style=\"color: darkgray\">|<\/span><span style=\"color: blue\">Out-File<\/span> <span style=\"color: navy\">&#8211;<span class=\"SpellE\">PSPath<\/span><\/span> <span style=\"color: darkred\">&#8220;<\/span><span style=\"color: orangered\">$<span class=\"SpellE\">env<span class=\"GramE\">:SystemDrive<\/span><\/span><\/span><span style=\"color: darkred\">\\OutputFromTestProviderDebugMode.txt&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">}<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span class=\"GramE\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkblue\">function<\/span><\/span><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\"> <span style=\"color: blueviolet\">Test-<span class=\"SpellE\">TargetResource<\/span><\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">&nbsp;&nbsp;&nbsp; <span class=\"SpellE\"><span class=\"GramE\"><span style=\"color: darkblue\">param<\/span><\/span><\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">&nbsp;&nbsp;&nbsp; (<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style=\"color: darkgray\">[<\/span><span class=\"GramE\"><span style=\"color: deepskyblue\">Parameter<\/span>(<\/span>Mandatory)<span style=\"color: darkgray\">]<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style=\"color: orangered\">$<span class=\"SpellE\">onlyProperty<\/span><\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">&nbsp;&nbsp;&nbsp; )<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">&nbsp;&nbsp;&nbsp; <span class=\"GramE\"><span style=\"color: darkblue\">return<\/span><\/span> <span style=\"color: orangered\">$false<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">} <\/span><\/p>\n<p class=\"MsoNormal\">&nbsp;<\/p>\n<p class=\"MsoNormal\">We author a configuration using the above <span class=\"GramE\">resource(<\/span>let us call the resource <span class=\"SpellE\">TestProviderDebugMode<\/span>):<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">Configuration <span class=\"SpellE\">ConfigTestDebugMode<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">&nbsp;&nbsp;&nbsp; Import-<span class=\"SpellE\">DscResource<\/span> -Name <span class=\"SpellE\">TestProviderDebugMode<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">&nbsp;&nbsp;&nbsp; Node <span class=\"SpellE\">localhost<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">&nbsp;&nbsp;&nbsp; {<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class=\"SpellE\">TestProviderDebugMode<\/span> test<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class=\"SpellE\"><span class=\"GramE\">onlyProperty<\/span><\/span> = &#8220;blah&#8221;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">&nbsp;&nbsp;&nbsp; }<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">}<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span class=\"SpellE\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">ConfigTestDebugMode<\/span><\/span><\/p>\n<p class=\"MsoNormal\">&nbsp;<\/p>\n<p class=\"MsoNormal\">&nbsp;If we read the contents of the file: &ldquo;$<span class=\"SpellE\">env<span class=\"GramE\">:SystemDrive<\/span><\/span>\\OutputFromTestProviderDebugMode.txt&rdquo;, we see it is 1. Now, let us update our provider code. For the purpose of demonstration, we will use the following script:<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: orangered\">$<span class=\"SpellE\">newResourceOutput<\/span><\/span><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\"> <span style=\"color: darkgray\">=<\/span> <span style=\"color: blue\">Get-Random<\/span> <span style=\"color: navy\">-Minimum<\/span> <span style=\"color: purple\">5<\/span> <span style=\"color: navy\">-Maximum<\/span> <span style=\"color: purple\">30<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: orangered\">$content<\/span><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\"> <span style=\"color: darkgray\">=<\/span> <span style=\"color: darkred\">@&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span class=\"GramE\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">function<\/span><\/span><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\"> Get-<span class=\"SpellE\">TargetResource<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">&nbsp;&nbsp;&nbsp; <span class=\"SpellE\"><span class=\"GramE\">param<\/span><\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">&nbsp;&nbsp;&nbsp; (<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [<span class=\"GramE\">Parameter(<\/span>Mandatory)]<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; `$<span class=\"SpellE\">onlyProperty<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">&nbsp;&nbsp;&nbsp; )<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">&nbsp;&nbsp;&nbsp; <span class=\"GramE\">return<\/span> @{<span class=\"SpellE\">onlyProperty<\/span> = Get-Content -path &#8220;<\/span><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: orangered\">$<span class=\"SpellE\">env:SystemDrive<\/span><\/span><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">\\OutputFromTestProviderDebugMode.txt&#8221;}<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">}<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span class=\"GramE\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">function<\/span><\/span><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\"> Set-<span class=\"SpellE\">TargetResource<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">&nbsp;&nbsp;&nbsp; <span class=\"SpellE\"><span class=\"GramE\">param<\/span><\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">&nbsp;&nbsp;&nbsp; (<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [<span class=\"GramE\">Parameter(<\/span>Mandatory)]<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`$<span class=\"SpellE\">onlyProperty<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">&nbsp;&nbsp;&nbsp; )<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">&nbsp;&nbsp;&nbsp; <span style=\"background: yellow\">&#8220;<\/span><\/span><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: orangered;background: yellow\">$<span class=\"SpellE\">newResourceOutput<\/span><\/span><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred;background: yellow\">&#8220;|Out-File &#8211;<span class=\"SpellE\">PSPath<\/span> C:\\OutputFromTestProviderDebugMode.txt<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">}<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span class=\"GramE\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">function<\/span><\/span><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\"> Test-<span class=\"SpellE\">TargetResource<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">&nbsp;&nbsp;&nbsp; <span class=\"SpellE\"><span class=\"GramE\">param<\/span><\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">&nbsp;&nbsp;&nbsp; (<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [<span class=\"GramE\">Parameter(<\/span>Mandatory)]<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; `$<span class=\"SpellE\">onlyProperty<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">&nbsp;&nbsp;&nbsp; )<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">&nbsp;&nbsp;&nbsp; <span class=\"GramE\">return<\/span> `$false<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">}<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: darkred\">&#8220;@<\/span><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\"> <span style=\"color: darkgray\">|<\/span> <span style=\"color: blue\">Out-File<\/span> <span style=\"color: navy\">&#8211;<span class=\"SpellE\">FilePath<\/span><\/span> <span style=\"color: darkred\">&#8220;C:\\Program Files\\WindowsPowerShell\\Modules\\MyPowerShellModules\\DSCResources\\TestProviderDebugMode\\TestProviderDebugMode.psm1&#8221;<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">&nbsp;<\/span><\/p>\n<p class=\"MsoNormal\">&nbsp;<\/p>\n<p class=\"MsoNormal\">It generates a random number and updates the provider code accordingly. This simulates the scenario where you need to make frequent updates to your provider and test them.<\/p>\n<p class=\"MsoNormal\">With the <span class=\"SpellE\">DebugMode<\/span> set to false, the contents of the file &ldquo;$<span class=\"SpellE\">env<span class=\"GramE\">:SystemDrive<\/span><\/span>\\OutputFromTestProviderDebugMode.txt&rdquo; are never changed.<\/p>\n<p class=\"MsoNormal\">Now let us set the <span class=\"SpellE\">DebugMode<\/span> to true by having the following block in our configuration script:<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span class=\"SpellE\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">LocalConfigurationManager<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">{<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">&nbsp;&nbsp;&nbsp; <span class=\"SpellE\">DebugMode<\/span> = $true<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: white\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console'\">} <\/span><\/p>\n<p class=\"MsoNormal\"><span style=\"font-size: 9.0pt;line-height: 105%;font-family: 'Lucida Console'\">&nbsp;<\/span><\/p>\n<p class=\"MsoNormal\">Now, if you run the above script again, you will see that the content of the file is different every time. (You can do a Get-<span class=\"SpellE\">DscConfiguration<\/span> to check it). Here is what I got in two subsequent runs:<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">PS C:\\Users\\WinVMAdmin\\Desktop&gt; Get-<span class=\"SpellE\">DscConfiguration<\/span> &#8211;<span class=\"SpellE\">CimSession<\/span> (New-<span class=\"SpellE\">CimSession<\/span> <span class=\"SpellE\">localhost<\/span>)<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">&nbsp;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span class=\"SpellE\"><span class=\"GramE\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">onlyProperty<\/span><\/span><\/span><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class=\"SpellE\">PSComputerName<\/span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">&#8212;&#8212;&#8212;&#8212;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8212;&#8212;&#8212;&#8212;&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">20&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class=\"SpellE\">localhost<\/span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">&nbsp;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">PS C:\\Users\\WinVMAdmin\\Desktop&gt; Get-<span class=\"SpellE\">DscConfiguration<\/span> &#8211;<span class=\"SpellE\">CimSession<\/span> (New-<span class=\"SpellE\">CimSession<\/span> <span class=\"SpellE\">localhost<\/span>)<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">&nbsp;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span class=\"SpellE\"><span class=\"GramE\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">onlyProperty<\/span><\/span><\/span><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class=\"SpellE\">PSComputerName<\/span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">&#8212;&#8212;&#8212;&#8212;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8212;&#8212;&#8212;&#8212;&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">14&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class=\"SpellE\">localhost<\/span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: .0001pt;line-height: normal;background: #012456\"><span style=\"font-size: 9.0pt;font-family: 'Lucida Console';color: whitesmoke\">&nbsp;<\/span><\/p>\n<p class=\"MsoNormal\">&nbsp;<\/p>\n<p class=\"MsoNormal\">Happy configuring!<\/p>\n<p class=\"MsoNormal\">Abhik Chatterjee<\/p>\n<p class=\"MsoNormal\">Windows PowerShell Developer<\/p>\n<p class=\"MsoNormal\">&nbsp;<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The DSC engine caches resources implemented as a PowerShell module for efficiency purposes. This can sometimes turn out to be annoying, when you are authoring a resource and testing it simultaneously. The only way to cause DSC to load the newer version every time is to explicitly kill the process hosting the DSC engine. As [&hellip;]<\/p>\n","protected":false},"author":600,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[142,150,251,345,348],"class_list":["post-1711","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell","tag-desired-state-configuration","tag-dsc","tag-powershell-4-0","tag-windows-powershell-4-0","tag-windows-powershell-desired-state-configuration"],"acf":[],"blog_post_summary":"<p>The DSC engine caches resources implemented as a PowerShell module for efficiency purposes. This can sometimes turn out to be annoying, when you are authoring a resource and testing it simultaneously. The only way to cause DSC to load the newer version every time is to explicitly kill the process hosting the DSC engine. As [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/1711","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/600"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=1711"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/1711\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=1711"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=1711"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=1711"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}