Skip to content

Exception Error #4

Description

@sureshkrishnan83

I am facing below issue while running get-netstat command . Running powershell version 7 on Mac. Not sure if I am doing something wrong. Thanks.

PS /Users/sureshkrishnan> Get-NetStat
MethodInvocationException: /Users/sureshkrishnan/.local/share/powershell/Modules/GetNetStat/1.0/GetNetStat.psm1:536
Line |
536 | if (!$UDP) { [Netstat]::GetTCP() }
| ~~~~~~~~~~~~~~~~~~~
| Exception calling "GetTCP" with "0" argument(s): "Value cannot be null. (Parameter 'path1')"

MethodInvocationException: /Users/sureshkrishnan/.local/share/powershell/Modules/GetNetStat/1.0/GetNetStat.psm1:537
Line |
537 | if (!$TCP) { [Netstat]::GetUDP() }
| ~~~~~~~~~~~~~~~~~~~
| Exception calling "GetUDP" with "0" argument(s): "Value cannot be null. (Parameter 'path1')"

Name Value


PSVersion 7.1.0
PSEdition Core
GitCommitId 7.1.0
OS Darwin 19.6.0 Darwin Kernel Version 19.6.0: Tue Nov 10 00:10:30 PST 2020; root:xnu-6153.141.10~1/RELEASE_X86_64
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions