Update remove-aovpn.ps1
This commit is contained in:
@@ -12,8 +12,8 @@ Start-Sleep -Seconds 5
|
||||
|
||||
# Try to remove the VPN connection
|
||||
try {
|
||||
Remove-VpnConnection -AllUserConnection -Name "Staedion AoVPN-D" -Force -ErrorAction Stop
|
||||
Remove-VpnConnection -Name "Staedion AoVPN-U" -Force -ErrorAction Stop
|
||||
Remove-VpnConnection -AllUserConnection -Name "Staedion AoVPN-D" -Force
|
||||
Remove-VpnConnection -Name "Staedion AoVPN-U" -Force
|
||||
Write-Output "VPN connection successfully removed."
|
||||
}
|
||||
catch {
|
||||
|
Reference in New Issue
Block a user