MOVED TO https://github.com/qlik-product-success/windows-process-port-usage
This project contains a Powershell script that collect process and port allocation data from Windows, and stores the results to CSV files. By runnig the script at scheduled intervals through a Windows task, port allocation trends over time can be analysed through the attached Qlik Sense app.
-
Create folder
c:/temp
unless it already exists -
Clone or download this GitHub project to
c:/temp
- Clone with Git
git clone https://github.com/tonikautto/windows-process-port-usage
- Download as ZIP
https://github.com/tonikautto/windows-process-port-usage/archive/master.zip
- Clone with Git
-
Open Powershell and run the script manually to confirm it works
- Trace only TCP and write results to subfolder 'PortTraces'
Windows-Port-Usage.ps1
- Trace only TCP and do not compress result to ZIP archive
Windows-Port-Usage.ps1 -NoZip
- Trace only TCP and write results to custom location
Windows-Port-Usage.ps1 -OutputFolder "\\MyFileServer\PortTraces\"
- Trace TCP and UDP and write results to same folder as PS1 file
Windows-Port-Usage.ps1 -InlcudeUDP
- Trace TCP and UDP and write results to custom location
Windows-Port-Usage.ps1 -OutputFolder "\\MyFileServer\PortTraces\" -InlcudeUDP
- Trace only TCP and write results to subfolder 'PortTraces'
-
Confirm script output based selected output location
- Configure a Windows Scheduled Task to execute this regularly:
- Start > Task Scheduler
- Highlight Task Scheduler Library
- Create Task
- General Tab Config
- Triggers config:
- Actions Tab Config:
NOTE: Adjust argument based on prefernce option from step 3. - Manually run the task & make sure it outputs a CSV
- Import app
- Configure data connection
- Default conenciton points to C:\TEMP\ProcessUsage
- Adjust to desired location of collected CSV files
- Reload app
This project is provided "AS IS", without any warranty, under the MIT License - see the LICENSE file for details