Updated check-network.ps1 and check-vpn.ps1

This commit is contained in:
Markus Fleschutz
2024-12-27 22:21:32 +01:00
parent ece41fa2e9
commit 7841c95ad7
2 changed files with 3 additions and 3 deletions

View File

@ -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
}
}