Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write score to registry #63

Open
snok87 opened this issue Feb 17, 2025 · 0 comments
Open

Write score to registry #63

snok87 opened this issue Feb 17, 2025 · 0 comments

Comments

@snok87
Copy link

snok87 commented Feb 17, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant