Last active
August 22, 2024 14:48
-
-
Save h4n0sh1/d35d56e8594764e79a429a915c7d01d2 to your computer and use it in GitHub Desktop.
HardeningKitty - Quick report
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory=$False, | |
HelpMessage="Optional Select FindingList")] | |
[String]$findingList | |
) | |
Import-Module .\HardeningKitty.psd1 | |
if($PSBoundParameters.ContainsKey('findingList')){ | |
$mode=$findinglist.trim() | |
}else{ | |
$mode="default" | |
} | |
Start-Transcript -Path ".\report_$(Get-Date -Format 'MMddyyhhmm')_$mode.txt" | |
if($PSBoundParameters.ContainsKey($findingList)){ | |
Invoke-HardeningKitty -FileFindingList $findingList | |
}else{ | |
Invoke-HardeningKitty | |
} | |
Stop-Transcript |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment