mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-17 14:42:58 +01:00
update
This commit is contained in:
4
WELA.ps1
4
WELA.ps1
@@ -1,7 +1,3 @@
|
|||||||
# Set the console encoding to UTF-8
|
|
||||||
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
|
|
||||||
$PSDefaultParameterValues['Out-File:Encoding'] = 'utf8'
|
|
||||||
|
|
||||||
# Step 1: Run the auditpol command using cmd.exe and redirect its output to a file
|
# Step 1: Run the auditpol command using cmd.exe and redirect its output to a file
|
||||||
$outputFilePath = "auditpol_output.txt"
|
$outputFilePath = "auditpol_output.txt"
|
||||||
Start-Process -FilePath "cmd.exe" -ArgumentList "/c chcp 437 & auditpol /get /category:* /r" -NoNewWindow -Wait -RedirectStandardOutput $outputFilePath
|
Start-Process -FilePath "cmd.exe" -ArgumentList "/c chcp 437 & auditpol /get /category:* /r" -NoNewWindow -Wait -RedirectStandardOutput $outputFilePath
|
||||||
|
|||||||
Reference in New Issue
Block a user