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

Copying modules not working when using CIMSession #65

Open matt2005 opened 6 years ago

matt2005 commented 6 years ago

When running with CIMSession the credentials are not passed to the PSSession which is used to copy the modules. The line below doesn't get the credentials so it attempts using the current users credential. https://github.com/Microsoft/DSCEA/blob/92401ff974b7934448aa9abd392064ec44043f65/functions/Start-DSCEAscan.ps1#L178