From be62945ec8dbf52f6b36b8168952634b768f5ec0 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Sat, 1 Jul 2023 16:40:40 +0200 Subject: [PATCH] Update check-vpn.ps1 --- Scripts/check-vpn.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Scripts/check-vpn.ps1 b/Scripts/check-vpn.ps1 index a7d5bc74..6e98b1b4 100755 --- a/Scripts/check-vpn.ps1 +++ b/Scripts/check-vpn.ps1 @@ -2,10 +2,10 @@ .SYNOPSIS Checks the VPN status .DESCRIPTION - This PowerShell script queries the status of the VPN connections and prints it. + This PowerShell script queries the status of the VPN connection(s) and prints it. .EXAMPLE PS> ./check-vpn - ✅ Disconnected VPN 'NASA L2TP' + ✅ VPN to NASA L2TP: Disconnected .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -19,7 +19,7 @@ try { } else { $Connections = Get-VPNConnection foreach($Connection in $Connections) { - "✅ $($Connection.ConnectionStatus) VPN '$($Connection.Name)'" + "✅ VPN to $($Connection.Name): $($Connection.ConnectionStatus)" $NoVPN = $false } }