Added skip to setupWDAC.ps1

This commit is contained in:
2023-11-15 11:08:51 +01:00
parent c68edc34c9
commit e908a22325

View File

@@ -24,12 +24,14 @@ function Show-WDACMenu {
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")