From 7841c95ad73ec3775d25488989cca3f314b7cbb6 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Fri, 27 Dec 2024 22:21:32 +0100 Subject: [PATCH] Updated check-network.ps1 and check-vpn.ps1 --- scripts/check-network.ps1 | 2 +- scripts/check-vpn.ps1 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/check-network.ps1 b/scripts/check-network.ps1 index 99a167b2..9bfe31f2 100755 --- a/scripts/check-network.ps1 +++ b/scripts/check-network.ps1 @@ -20,9 +20,9 @@ Write-Host "`n N E T W O R K" -foregroundColor green & "$PSScriptRoot/list-local-ip.ps1" & "$PSScriptRoot/ping-local-devices.ps1" & "$PSScriptRoot/list-network-shares.ps1" -& "$PSScriptRoot/check-vpn.ps1" & "$PSScriptRoot/list-internet-ip.ps1" & "$PSScriptRoot/ping-internet.ps1" & "$PSScriptRoot/check-dns.ps1" +& "$PSScriptRoot/check-vpn.ps1" & "$PSScriptRoot/list-ssh-key.ps1" exit 0 # success diff --git a/scripts/check-vpn.ps1 b/scripts/check-vpn.ps1 index 2e130962..726147b1 100755 --- a/scripts/check-vpn.ps1 +++ b/scripts/check-vpn.ps1 @@ -5,7 +5,7 @@ This PowerShell script queries the status of the VPN connection(s) and prints it. .EXAMPLE PS> ./check-vpn.ps1 - ✅ VPN to NASA L2TP is connected + ✅ Internet VPN to NASA L2TP is connected .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -19,7 +19,7 @@ try { } else { $connections = Get-VPNConnection foreach($connection in $connections) { - Write-Host "✅ VPN to $($connection.Name) is $($connection.ConnectionStatus.ToLower())" + Write-Host "✅ Internet VPN to $($connection.Name) is $($connection.ConnectionStatus.ToLower())" $noVPN = $false } }