Lightweight PowerShell utility for monitoring Windows COM ports in real-time. Displays active serial ports, tracks device connections, and helps identify which port corresponds to connected USB-serial converters. Essential for automation, industrial equipment diagnostics, and serial communication testing.
When working with industrial CLPs, Arduino, serial devices, or embedded systems, you need to quickly identify which COM port your device is connected to. This tool:
- Displays active COM ports instantly
- Highlights the most recently connected port
- Provides quick feedback without complex tools
- Runs directly from PowerShell—no installation needed
- Helps with repetitive testing and hardware diagnostics
- ✓ Real-time COM port detection and monitoring
- ✓ Refresh every 1 second
- ✓ Highlight last connected port
- ✓ Filter out duplicate or unknown ports
- ✓ Support for common USB-serial converters (CH340, FTDI, Prolific)
- ✓ Quick desktop launcher (.bat file)
- ✓ Lightweight—no external dependencies
- ✓ Works with Windows 10+ and PowerShell 5.1+
- Language: PowerShell
- Platform: Windows 10+
- Runtime: PowerShell 5.1 or later
- Dependencies: None (uses native WMI)
Status: Stable / Maintenance
Version: 0.1.0
Last Updated: May 2026
This is a simple, focused tool for a specific operational need. Mature enough for production use.
- Windows 10 or later
- PowerShell 5.1 or later
- Permission to execute PowerShell scripts
Option 1: Via Desktop Shortcut
A shortcut named "Abrir Monitor COM" (Open Monitor COM) is created on your desktop for quick access.
Option 2: Direct PowerShell Execution
# Navigate to the repo directory
cd monitor-com
# Run the script directly
powershell -NoExit -ExecutionPolicy Bypass -File .\monitor_com.ps1Option 3: Import and use in your scripts
# Source the script
. .\monitor_com.ps1
# Use the monitoring functions
Get-ActiveCOMPortsmonitor-com/
├── monitor_com.ps1 # Main script
├── Abrir Monitor COM.bat # Desktop launcher shortcut
├── README.md # This file
└── .gitignore # Git ignore rules
- Connect a USB-serial converter to your Windows PC
- Run Monitor COM
- Observe which COM port appears
- Use that port in your application (HIstudio, Modbus Poll, ModRSsim, Arduino IDE, etc.)
Example output:
Active COM Ports:
COM6 USB Serial Device
COM7 Arduino Uno
Last connected: COM6
- Real-time port monitoring
- Last port detection
- USB device tracking
- Desktop shortcut launcher
- Connection/disconnection logging
- VID/PID (vendor/product ID) display
- HTML report generation
- Simple GUI version
- Audio alert on new device connection
- Configuration file for port filtering
- This tool reads local COM port information only
- No data is sent externally
- No credentials or sensitive information is handled
- Safe to run in any Windows environment
- Does not modify system settings
This is a personal portfolio project. For improvements or suggestions:
- Open an issue for feature requests or bug reports
- Feel free to fork and experiment
- Submit PRs for improvements or documentation
License: Pending decision
Currently no explicit license. If you plan to use or modify this code, ask for clarification on licensing terms.
Atson Melo
Focus: PowerShell automation, Windows diagnostics, serial communication
GitHub: @AtsonMelo
- atson-powershell-toolkit – PowerShell automation suite
- monitor-hardware – Hardware monitoring and diagnostics
- testador-neon-hio115 – Industrial CLP testing tool