Force a GPS port to a desired Port in Windows 7/8/10.

By | July 15, 2016
Share

Force a GPS port to a desired Port in Windows.

In a recent scenario, I needed to force to the Gobi 5000’s (WWAN) GPS to use COM3 in Windows 7 x64.  Here are the steps I took to accomplish this.  This process was also tested and worked on moving a “u-blox virtual..” to COM, and moving a COM2 device to use COM3.

1. BEFORE your drivers are installed, you must tell the Windows OS that the desired COM port is “In-Use”. I accomplished this by importing the following REG, which sets COM1-5 to “In-Use”:
https://github.com/brianfgonzalez/Scripts/blob/master/COM01-05-InUse.reg

LockoutCOM1-5

2. Reboot the system.

3. Next, Install any/all drivers that may occupy COM ports, incl. Gobi 5000.

4. Lastly, Edit and run the “ForceCOM.ps1” script, and then reboot before usage:
https://github.com/brianfgonzalez/Scripts/blob/master/ForceCOM.ps1

Additional Files:
https://github.com/brianfgonzalez/Scripts/blob/master/SetACL.exe
https://github.com/brianfgonzalez/Scripts/blob/master/subinacl.exe

If you need a batch to call the Powershell, here is what I used:

Call Force COM

/BrianG

Leave a Reply

Your email address will not be published. Required fields are marked *

*