mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-19 00:46:30 +02:00
Updated the manuals
This commit is contained in:
@@ -6,7 +6,7 @@ This PowerShell script checks the given IPv4 address for validity.
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-ipv4-address.ps1 [[-Address] <String>] [<CommonParameters>]
|
||||
/home/markus/Repos/PowerShell/scripts/check-ipv4-address.ps1 [[-Address] <String>] [<CommonParameters>]
|
||||
|
||||
-Address <String>
|
||||
Specifies the IPv4 address to check
|
||||
@@ -26,7 +26,7 @@ Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./check-ipv4-address 192.168.11.22
|
||||
✔️ IPv4 192.168.11.22 is valid
|
||||
✅ IPv4 192.168.11.22 is valid
|
||||
|
||||
```
|
||||
|
||||
@@ -50,7 +50,7 @@ Script Content
|
||||
Specifies the IPv4 address to check
|
||||
.EXAMPLE
|
||||
PS> ./check-ipv4-address 192.168.11.22
|
||||
✔️ IPv4 192.168.11.22 is valid
|
||||
✅ IPv4 192.168.11.22 is valid
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@@ -72,7 +72,7 @@ try {
|
||||
if ($Address -eq "" ) { $Address = read-host "Enter IPv4 address to validate" }
|
||||
|
||||
if (IsIPv4AddressValid $Address) {
|
||||
"✔️ IPv4 $Address is valid"
|
||||
"✅ IPv4 $Address is valid"
|
||||
exit 0 # success
|
||||
} else {
|
||||
write-warning "Invalid IPv4 address: $Address"
|
||||
@@ -84,4 +84,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-ipv4-address.ps1 as of 08/15/2024 09:50:45)*
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-ipv4-address.ps1 as of 11/08/2024 12:34:46)*
|
||||
|
Reference in New Issue
Block a user