Skip to content

Write score to registry #63

@snok87

Description

@snok87

It would be nice a parameter like -ScoreRegPath and just store the number. After that admins can pick that value with a management tool like SCCM and create compliance reports for easy tracking it.

For example:

Write-ProtocolEntry -Text "Your HardeningKitty score is: $HardeningKittyScoreRounded. HardeningKitty Statistics: Total checks: $StatsTotal - Passed: $StatsPassed, Low: $StatsLow, Medium: $StatsMedium, High: $StatsHigh." -LogLevel "Info"

if (!(test-path -Path $ScoreRegPath)){ new-item -Path $ScoreRegPath }
New-ItemProperty -Path $ScoreRegPath -Name Score -Value "$HardeningKittyScoreRounded"

I have it modified but will be nice if its included and signed on your script

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions