Open a command prompt:
Run PowerShell:
C:\Users\gary>powershell
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
PS C:\Users\gary>
Download the test script:
PS C:\Users\gary> Invoke-Webrequest -Outfile list-open-ports.ps1 https://raw.githubusercontent.com/remoteit/cli/CLI-212-upate-docs-and-supporting-files/helper_files/list-open-ports.ps1
PS C:\Users\gary>
Run the test script:
PS C:\Users\gary> .\list-open-ports.ps1
TCP
Address Port PID ProcessName Path
------- ---- --- ----------- ----
127.0.0.1 65535 4564 demuxer
UDP
Address Port PID ProcessName Path
------- ---- --- ----------- ----
0.0.0.0 63135 17896 connectd
0.0.0.0 63133 17896 connectd
0.0.0.0 63130 17584 connectd
0.0.0.0 57832 3812 connectd
0.0.0.0 57829 3812 connectd
0.0.0.0 57826 15684 connectd
0.0.0.0 57824 15684 connectd
0.0.0.0 51427 17584 connectd
PS C:\Users\gary>