I found an error in the Archive DSC module (MSFT_ArchiveResource.psm1). After copying the code, debugging it in the ISE and figuring out the two lines that needed to be fixed, I want to make the change to the real file and test using Puppet and the msutter/dsc module, which makes use of the Archive Resource.
I found where I thought was the location of the file on my machine:
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\DSCResources\MSFT_ArchiveResource\MSFT_ArchiveResource.psm1
However, when I run Puppet, it is clear that my changed code is not being exercised. (If I set $Debug = $true at the top of the file, I do not see the extra output.) Is there some Windows cache that holds this file that I must clear? Is it being loaded from a ZIP or other archive?
I doubt that Puppet is related to the issue, but mention it in case it rings a bell. (I only made the code change on the Agent.)
UPDATE:
When I run the following line in Powershell, I do not find any process with the expected name containing "dsccore":
Get-WmiObject msft_providers | select -ExpandProperty provider
Results:
RegistryEventProvider
PolicyAgentInstanceProvider
CIMWin32
Msft_ProviderSubSystem
SCM Event Provider
Win32_WIN32_TERMINALSERVICE_Prov
WmiPerfClass
WmiPerfClass
WmiPerfInst
WmiPerfInst