Skip to content

Instantly share code, notes, and snippets.

@h4n0sh1
Last active August 22, 2024 14:48
Show Gist options
  • Save h4n0sh1/d35d56e8594764e79a429a915c7d01d2 to your computer and use it in GitHub Desktop.
Save h4n0sh1/d35d56e8594764e79a429a915c7d01d2 to your computer and use it in GitHub Desktop.
HardeningKitty - Quick report
[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