Skip to content

Test-Connection not recognised #5478

@MKPhil

Description

@MKPhil

Test-Connection is not recognised in PowerShell for Linux

Steps to reproduce

Test-Connection localhost

Expected behaviour

As per Windows version:

Source        Destination     IPV4Address      IPV6Address                              Bytes    Time(ms)
------        -----------     -----------      -----------                              -----    --------
MYDESKTOP localhost       127.0.0.1        ::1                                      32       0
MYDESKTOP localhost       127.0.0.1        ::1                                      32       0
MYDESKTOP localhost       127.0.0.1        ::1                                      32       0
MYDESKTOP localhost       127.0.0.1        ::1                                      32       0

Actual behaviour

Test-Connection : The term 'Test-Connection' is not recognized as the name of a cmdlet, function, script file, or operable
program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Test-Connection localhost
+ ~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Test-Connection:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Environment data

> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      6.0.0-beta.9
PSEdition                      Core
GitCommitId                    v6.0.0-beta.9
OS                             Linux 3.10.0-327.el7.x86_64 #1 SMP Thu Oct 29 17:29:29 EDT 2015
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-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-AnsweredThe question is answered.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions