I found an error in the Archive DSC module (MSFT_ArchiveResource.psm1). After copying the code, debugging it in ISE and finding out two lines that need to be fixed, I want to make changes to the real file and test it using Puppet and the msutter / dsc module, which uses the archive resource.
I found where, as I thought, there was a file location 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 modified code is not executing. (If I set $ Debug = $ true at the top of the file, I donβt see any additional output.) Is there some kind of cache on Windows that contains this file that I have to clear? Is it downloaded from ZIP or another archive?
I doubt Puppet refers to the problem, but mention it if he calls. (I just made a code change in the Agent.)
UPDATE:
When I run the following line in Powershell, I do not see 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
source share