Fixed issues and improved WDAC selection

This commit is contained in:
2024-06-21 16:03:10 +02:00
parent 57cb349113
commit bbb2e2276b
4 changed files with 5 additions and 36 deletions

View File

@@ -17,26 +17,6 @@ function DisableWDAC {
Write-Host "WDAC file deleted!"
}
function Show-WDACMenu {
$selection = $null
do {
Write-Host "What would you like to do?"
Write-Host "1. Enable WDAC"
Write-Host "2. Disable WDAC"
Write-Host "3. Skip"
$selection = Read-Host "Enter the number of your choice"
switch ($selection) {
"1" { EnableWDAC }
"2" { DisableWDAC }
"3" { Write-Host "Skipping WDAC..." }
default { Write-Host "Invalid selection. Please choose 1, 2, or 3." }
}
} while ($selection -ne "1" -and $selection -ne "2" -and $selection -ne "3")
}
function SetupWDAC {
param (
[bool] $enable