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
199 stars 41 forks source link

Get-DSCEAreport have a switch -ShowOnlyNonCompliant #41

Open skest3qc opened 7 years ago

skest3qc commented 7 years ago

It would be nice if Get-DSCEAreport have a switch -ShowOnlyNonCompliant Get-DSCEAreport -InFile $XMLFile -OutPath "$OutputPath" -Overall Get-DSCEAreport -InFile $XMLFile -OutPath "$OutputPath" -Detailed

So we don't need to scroll and search in HTML file.

krjhitch commented 7 years ago

Taking a look at this. It looks like -Detailed does non-compliant only right now (which should probably be fixed). How many systems are you looking at in the -Overall? Trying to decide if I should make a [switch]$Noncompliant or [string[]]$State and validate 'Compliant','NonCompliant' in case people want to filter by either one

skest3qc commented 7 years ago

I am managing now around 100 servers and I find the $state parameter better