Skip to content

Test-Connection on PowerShell 6.1 RC-1, Does not give correct output? #7685

@ghost

Description

Steps to reproduce

> $TestConnection = Test-Connection 8.8.8.8 -Count 3 

Expected behavior

> $TestConnection = Test-Connection 8.8.8.8 -Count 3 
> $TestConnection 
Source        Destination     IPV4Address      IPV6Address                              Bytes    Time(ms)
------        -----------     -----------      -----------                              -----    --------
MacBook-Pro... 8.8.8.8         8.8.8.8                                                   32       29
MacBook-Pro... 8.8.8.8         8.8.8.8                                                   32       29
MacBook-Pro... 8.8.8.8         8.8.8.8                                                   32       29
MacBook-Pro... 8.8.8.8         8.8.8.8                                                   32       29
MacBook-Pro... 8.8.8.8         8.8.8.8                                                   32       28
MacBook-Pro... 8.8.8.8         8.8.8.8                                                   32       29
MacBook-Pro... 8.8.8.8         8.8.8.8                                                   32       29
MacBook-Pro... 8.8.8.8         8.8.8.8                                                   32       29
MacBook-Pro... 8.8.8.8         8.8.8.8                                                   32       30
MacBook-Pro... 8.8.8.8         8.8.8.8                                                   32       28

Actual behavior

> $TestConnection = Test-Connection 8.8.8.8 -Count 3 
Pinging 8.8.8.8 [8.8.8.8] with 32 bytes of data:
Reply from 8.8.8.8: bytes=0 time=31ms TTL=
Reply from 8.8.8.8: bytes=0 time=31ms TTL=
Reply from 8.8.8.8: bytes=0 time=31ms TTL= 
Ping complete.                
> $TestConnection
Source                  Destination Replies                                                                              ------                  ----------- -------                                                                              
MacBook-Pro.localdomain 8.8.8.8     {System.Net.NetworkInformation.PingReply, System.Net.NetworkInformation.PingReply...

Environment data

> $PSVersionTable
Name                           Value                                                                    ----                           -----                                                                    
PSVersion                      6.1.0-rc.1
PSEdition                      Core
GitCommitId                    6.1.0-rc.1
OS                             Darwin 18.0.0 Darwin Kernel Version 18.0.0: Wed Aug 22 20:59:21 PDT 2...
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-FixedThe issue is fixed.WG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions