-
Notifications
You must be signed in to change notification settings - Fork 0
Get QuickPing
external help file: ADAuditTasks-help.xml Module Name: ADAuditTasks online version: https://github.com/CriticalSolutionsNetwork/ADAuditTasks/wiki/Get-QuickPing schema: 2.0.0
Performs a quick ping on a range of IP addresses and returns an array of IP addresses that responded to the ping and an array of IP addresses that failed to respond.
Get-QuickPing [[-IPRange] <Object>] [[-TTL] <Int32>] [[-BufferSize] <Int32>] [[-Count] <Int32>]
[<CommonParameters>]
This function performs a quick ping on a range of IP addresses specified by the IPRange parameter. The ping is done with a Time-to-Live (TTL) value of 128 (by default). The function returns an array of IP addresses that responded to the ping and an array of IP addresses that failed to respond. This function has specific behaviors depending on the PowerShell version. For PowerShell 7 and above, it uses the 'Test-Connection' cmdlet's '-OutVariable' parameter.
Get-QuickPing -IPRange 192.168.1.1
Performs a quick ping on the IP address 192.168.1.1 with a TTL of 128 and returns an
array of IP addresses that responded to the ping and an array of IP addresses that
failed to respond.
Get-QuickPing -IPRange "192.168.1.1", "192.168.1.2", "192.168.1.3"
Performs a quick ping on the IP addresses 192.168.1.1, 192.168.1.2, and 192.168.1.3 with
a TTL of 128 and returns an array of IP addresses that responded to the ping and an array
of IP addresses that failed to respond.
Specifies the size of the buffer to use for the ping. The default value is 16.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: 16
Accept pipeline input: False
Accept wildcard characters: False
Specifies the number of times to send the ping request. The default value is 1.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: 1
Accept pipeline input: False
Accept wildcard characters: False
Specifies a range of IP addresses to ping. Can be a string with a single IP address.
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the Time-to-Live (TTL) value to use for the ping. The default value is 128.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: 128
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
https://github.com/CriticalSolutionsNetwork/ADAuditTasks/wiki/Get-QuickPing
https://criticalsolutionsnetwork.github.io/ADAuditTasks/#Get-QuickPing