Skip to content

Commit c80f9fa

Browse files
authored
Add USAGE section for Ping-Host function
1 parent be75d3b commit c80f9fa

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

utilities/SystemStatus.ps1

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
#Function Ping-Host
1+
<#Function Ping-Host
2+
Usage:
3+
Ping multiple hostnames at a time
4+
Ping-Host '127.0.0.1','localhost','10.0.50.5'
5+
Ping range ip range at a time
6+
Ping-Host (100..150|%{"10.0.50.$_"})
7+
Ping a list of hostname in one go
8+
Ping-Host -Hosts (gc C:\temp\computers.txt)
9+
Ping hostnames queried from Active Directory
10+
Ping-Host -Hosts ((Get-ADComputer -Filter {name -like 'LAPTOP*'}).name
11+
#>
212
Function Ping-Host
313
{
414
#Parameter Definition

0 commit comments

Comments
 (0)