Update some check-*.ps1 scripts

This commit is contained in:
Markus Fleschutz
2023-01-23 14:04:23 +01:00
parent fbd44c0c28
commit 34d6adef57
11 changed files with 35 additions and 34 deletions

View File

@ -2,7 +2,7 @@
.SYNOPSIS
Checks the VPN connection
.DESCRIPTION
This PowerShell script queries and prints the status of any VPN connection.
This PowerShell script queries status of the VPN connections and prints it.
.EXAMPLE
PS> ./check-vpn
.LINK
@ -22,7 +22,7 @@ try {
$NoVPN = $false
}
}
if ($NoVPN) { "⚠️ No VPN connection" }
if ($NoVPN) { Write-Host "⚠️ No VPN connection" }
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"