Updated the manuals

This commit is contained in:
Markus Fleschutz
2025-05-12 22:04:02 +02:00
parent b3cdf19f4a
commit 09eb3d1808
651 changed files with 8362 additions and 1405 deletions

View File

@@ -15,6 +15,7 @@ Parameters
Position? 1
Default value x.com
Accept pipeline input? false
Aliases
Accept wildcard characters? false
[<CommonParameters>]
@@ -26,7 +27,7 @@ Example
-------
```powershell
PS> ./ping-host.ps1 x.com
Host 'x.com' with 20ms latency at IP 104.244.42.1 is up 👍
'x.com' is online (20ms to IP 104.244.42.1)
```
@@ -50,7 +51,7 @@ Script Content
Specifies the hostname or IP address to ping (x.com by default)
.EXAMPLE
PS> ./ping-host.ps1 x.com
Host 'x.com' with 20ms latency at IP 104.244.42.1 is up 👍
✅ 'x.com' is online (20ms to IP 104.244.42.1)
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
@@ -65,14 +66,14 @@ try {
[Threading.Tasks.Task]::WaitAll($tasks)
foreach($ping in $tasks.Result) {
if ($ping.Status -eq "Success") {
Write-Output "✅ Host '$hostname' with $($ping.RoundtripTime)ms latency at IP $($ping.Address) is up 👍"
Write-Output "✅ '$hostname' is online ($($ping.RoundtripTime / 2)ms to IP $($ping.Address))"
exit 0 # success
} else {
Write-Output "⚠️ No reply from '$hostname' (IP $($ping.Address)) - check the connection or maybe the host is down."
exit 1
}
}
Write-Output "⚠️ No reply from host '$hostname' - check the connection or maybe the host is down."
Write-Output "⚠️ No reply from '$hostname' - check the connection or maybe the host is down."
exit 1
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
@@ -80,4 +81,4 @@ try {
}
```
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:24)*
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:57)*