microsoft / DSCEA

DSC Environment Analyzer (DSCEA) is a simple implementation of PowerShell Desired State Configuration that uses the declarative nature of DSC to scan systems in an environment against a defined reference MOF file and generate compliance reports as to whether systems match the desired configuration.
https://microsoft.github.io/DSCEA
Other
197 stars 41 forks source link

Prevent duplicates when MOF has more than one of a given resource. #62

Closed icashman closed 5 years ago

icashman commented 6 years ago

Using a large MOF with several hundred resources the function Get-MOFRequiredModules.ps1 can return hundreds of duplicates. DSCEA then tries to copy the resources to the scan target repeatedly. This can result in huge delays before the scans begin and can appear to the user that the process is stuck.

rkyttle commented 6 years ago

Thank you for submitting this Ian! We will take a look and test this out and move it into the dev branch if all looks good.