Update the check-*.ps1 scripts

This commit is contained in:
Markus Fleschutz
2022-11-28 09:13:01 +01:00
parent 123494e015
commit cbf046ba3e
8 changed files with 22 additions and 18 deletions

View File

@ -18,11 +18,11 @@ try {
} else {
$Connections = (Get-VPNConnection)
foreach($Connection in $Connections) {
"✅ VPN '$($Connection.Name)' is $($Connection.ConnectionStatus)."
"✅ VPN '$($Connection.Name)' is $($Connection.ConnectionStatus)"
$NoVPN = $false
}
}
if ($NoVPN) { "⚠️ No VPN connection." }
if ($NoVPN) { "⚠️ No VPN connection" }
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"