mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-06 09:12:46 +01:00
fix: update ConfigureAuditSettings function to accept Auto parameter and add new audit policy configuration script
This commit is contained in:
5
WELA.ps1
5
WELA.ps1
@@ -2,7 +2,8 @@
|
|||||||
[string]$Cmd,
|
[string]$Cmd,
|
||||||
[string]$OutType = "std",
|
[string]$OutType = "std",
|
||||||
[string]$Baseline = "YamatoSecurity",
|
[string]$Baseline = "YamatoSecurity",
|
||||||
[bool]$Debug = $false
|
[bool]$Debug = $false,
|
||||||
|
[switch]$Auto
|
||||||
)
|
)
|
||||||
|
|
||||||
class WELA {
|
class WELA {
|
||||||
@@ -5827,7 +5828,7 @@ switch ($Cmd.ToLower()) {
|
|||||||
Write-Host "Invalid Guide specified. Valid options are: YamatoSecurity, ASD, Microsoft_Client, Microsoft_Server."
|
Write-Host "Invalid Guide specified. Valid options are: YamatoSecurity, ASD, Microsoft_Client, Microsoft_Server."
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
ConfigureAuditSettings -Baseline $Baseline -Auto
|
ConfigureAuditSettings -Baseline $Baseline -Auto:$Auto
|
||||||
}
|
}
|
||||||
|
|
||||||
"update-rules" {
|
"update-rules" {
|
||||||
|
|||||||
Reference in New Issue
Block a user