Skip to content

Commit

Permalink
(GH-10697) Clarify behavior of -Repeat for Test-Connection (#10699)
Browse files Browse the repository at this point in the history
Prior to this change, the documentation for the `-Repeat`
parameter of the `Test-Connection` cmdlet did not indicate
that the cmdlet continuously pings only the _first_ value
for the `-TargetValue` parameter.

This change:

- Clarifies the behavior.
- Resolves #10697
- Fixes AB#187541
  • Loading branch information
michaeltlombardi authored Dec 1, 2023
1 parent 944fe73 commit 98dfb4a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Management
ms.date: 12/12/2022
ms.date: 12/01/2023
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/test-connection?view=powershell-7.2&WT.mc_id=ps-gethelp
schema: 2.0.0
title: Test-Connection
Expand Down Expand Up @@ -382,8 +382,9 @@ Accept wildcard characters: False

### -Repeat

Causes the cmdlet to send ping requests continuously. This parameter can't be used with the
**Count** parameter.
Causes the cmdlet to send ping requests continuously. When the value of **TargetName** is an array
of targets, the cmdlet repeats the ping requests for the first target only. It ignores the
remaining targets. This parameter can't be used with the **Count** parameter.

```yaml
Type: System.Management.Automation.SwitchParameter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Management
ms.date: 12/12/2022
ms.date: 12/01/2023
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/test-connection?view=powershell-7.3&WT.mc_id=ps-gethelp
schema: 2.0.0
title: Test-Connection
Expand Down Expand Up @@ -382,8 +382,9 @@ Accept wildcard characters: False

### -Repeat

Causes the cmdlet to send ping requests continuously. This parameter can't be used with the
**Count** parameter.
Causes the cmdlet to send ping requests continuously. When the value of **TargetName** is an array
of targets, the cmdlet repeats the ping requests for the first target only. It ignores the
remaining targets. This parameter can't be used with the **Count** parameter.

```yaml
Type: System.Management.Automation.SwitchParameter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Management
ms.date: 10/25/2023
ms.date: 12/01/2023
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/test-connection?view=powershell-7.4&WT.mc_id=ps-gethelp
schema: 2.0.0
title: Test-Connection
Expand Down Expand Up @@ -422,8 +422,9 @@ Accept wildcard characters: False

### -Repeat

Causes the cmdlet to send ping requests continuously. This parameter can't be used with the
**Count** parameter.
Causes the cmdlet to send ping requests continuously. When the value of **TargetName** is an array
of targets, the cmdlet repeats the ping requests for the first target only. It ignores the
remaining targets. This parameter can't be used with the **Count** parameter.

```yaml
Type: System.Management.Automation.SwitchParameter
Expand Down

0 comments on commit 98dfb4a

Please sign in to comment.