I want to extend the original File
DSC resource to add support for ensuring that files not present in the source are deleted in the destination. To do this, I'd like to know at least how the original one is implemented by checking it's code on a disassembler or try to find it's implementation in places like ReferenceSource, but I can't for the life of me find where the dll that implements the resource is located on my computer.
When I issue a Get-DscResource File
command in PowerShell, the Module
property is empty. I then tried inspecting the object itself to see if anything came up, but the Path
property is also empty, while the ParentPath
property points to C:\Windows\system32\Configuration\Schema\MSFT_FileDirectoryConfiguration
, which only contains the metadata files and not the binary dll.
I know I could probably work around this using the method described in the other question I linked, but we need a lot of folders with this behavior and it would be a problem to maintain those scripts like that.
Ideally it would be possible to extend the original class and add this behavior to it, but I'm not counting on this being possible. I just wanted to have the original implementation as a baseline to add this feature.
With all this in mind, where can I find the actual dll that implements the functionality of a given binary DSC resource?