GetNetStat
GetNetStat copied to clipboard
Exception Error
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