Last active
May 11, 2023 12:50
-
-
Save dgosbell/2ac348a40b9d32759a78fff59512b7b8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$process = "MSMDSRV" | |
get-process -name $process | % {get-nettcpconnection -OwningProcess $_.id} | select-object @{Name="Process"; Expression = {$Process}},LocalPort, RemotePort, OwningProcess | |
$process = "PBIDesktop" | |
get-process -name $process | % {get-nettcpconnection -OwningProcess $_.id} | select-object @{Name="Process"; Expression = {$Process}},LocalPort, RemotePort, OwningProcess |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment