mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 13:04:59 +02:00
Update check-vpn.ps1
This commit is contained in:
@ -15,9 +15,9 @@ try {
|
||||
$Connections = (Get-VPNConnection)
|
||||
$Reply = ""
|
||||
foreach($Connection in $Connections) {
|
||||
$Reply += "connection $($Connection.Name) is $($Connection.ConnectionStatus), "
|
||||
$Reply += "VPN connection $($Connection.Name) is $($Connection.ConnectionStatus), "
|
||||
}
|
||||
if ("$Reply" -eq "") { $Reply = "No VPN connection available"
|
||||
if ("$Reply" -eq "") { $Reply = "No VPN connection available" }
|
||||
|
||||
"✔️ $Reply"
|
||||
& "$PSScriptRoot/speak-english.ps1" "$Reply"
|
||||
|
Reference in New Issue
Block a user