mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-07 01:32:50 +01:00
update
This commit is contained in:
11
WELA.ps1
11
WELA.ps1
@@ -1,3 +1,14 @@
|
||||
$logo = @"
|
||||
┃┃┃┃┃┃┏━━┫┃ ┃┏━┓┃
|
||||
┃┃┃┃┃┃┗━━┫┃ ┃┃ ┃┃
|
||||
┃┗┛┗┛┃┏━━┫┃ ┏┫┗━┛┃
|
||||
┗┓┏┓┏┫┗━━┫┗━┛┃┏━┓┃
|
||||
┗┛┗┛┗━━━┻━━━┻┛ ┗┛
|
||||
by Yamato Security
|
||||
"@
|
||||
|
||||
Write-Host $logo -ForegroundColor Green
|
||||
|
||||
# Step 1: Run the auditpol command using cmd.exe and redirect its output to a file
|
||||
$outputFilePath = "auditpol_output.txt"
|
||||
Start-Process -FilePath "cmd.exe" -ArgumentList "/c chcp 437 & auditpol /get /category:* /r > $outputFilePath" -NoNewWindow -Wait
|
||||
|
||||
Reference in New Issue
Block a user