Hi,
When I run Get-NetUDPEndpoint locally …
Get-NetUDPEndpoint -LocalAddress "0.0.0.0" | Select-Object LocalAddress,LocalPort,OwningProcess
… it returns the PID of he owning process.
But if I run the command against a remote computer using the parameter -CimSession, or via Invoke-Command …
New-CimSession -ComputerName RemoteComputer -Name RemoteCim
Get-NetUDPEndpoint -LocalAddress "0.0.0.0" -CimSession RemoteCim | Select-Object LocalAddress,LocalPort,OwningProcess
Invoke-Command -ComputerName RemoteComputer -ScriptBlock {Get-NetUDPEndpoint -LocalAddress "0.0.0.0"} | Select-Object LocalAddress,LocalPort,OwningProcess
… it doesn’t return the owning process.
Have I missed something out or is this an expected outcome?
Thanks.