mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-06 17:22:50 +01:00
add percentage
This commit is contained in:
2
WELA.ps1
2
WELA.ps1
@@ -182,7 +182,7 @@ function AuditLogSetting {
|
|||||||
[string] $outType
|
[string] $outType
|
||||||
)
|
)
|
||||||
$autidpolTxt = "./auditpol.txt"
|
$autidpolTxt = "./auditpol.txt"
|
||||||
# Start-Process -FilePath "cmd.exe" -ArgumentList "/c chcp 437 & auditpol /get /category:* /r" -NoNewWindow -Wait -RedirectStandardOutput $autidpolTxt
|
Start-Process -FilePath "cmd.exe" -ArgumentList "/c chcp 437 & auditpol /get /category:* /r" -NoNewWindow -Wait -RedirectStandardOutput $autidpolTxt
|
||||||
$enabledguid = [System.Collections.Generic.HashSet[string]]::new()
|
$enabledguid = [System.Collections.Generic.HashSet[string]]::new()
|
||||||
Get-Content -Path $autidpolTxt | Select-String -NotMatch "No Auditing" | ForEach-Object {
|
Get-Content -Path $autidpolTxt | Select-String -NotMatch "No Auditing" | ForEach-Object {
|
||||||
if ($_ -match '{(.*?)}') {
|
if ($_ -match '{(.*?)}') {
|
||||||
|
|||||||
Reference in New Issue
Block a user