mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-18 16:39:03 +02:00
Updated the manuals
This commit is contained in:
@@ -6,7 +6,7 @@ This PowerShell script queries the status of the VPN connection(s) and prints it
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
/home/markus/Repos/PowerShell/scripts/check-vpn.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-vpn.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@@ -17,7 +17,7 @@ Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./check-vpn.ps1
|
||||
✅ VPN to NASA L2TP is connected
|
||||
✅ Internet VPN to NASA L2TP is connected
|
||||
|
||||
```
|
||||
|
||||
@@ -39,7 +39,7 @@ Script Content
|
||||
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
|
||||
@@ -53,7 +53,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
|
||||
}
|
||||
}
|
||||
@@ -65,4 +65,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*
|
||||
|
Reference in New Issue
Block a user