Cannot upload any sketches to any boards - "Serial Port" menu is greyed out

I was having no problems uploading sketches to my 2 uno boards for a while, then one day, I couldn't get anything to upload. I was still using the 1.6 IDE at the time so my first step was to upgrade to 1.8, but that didn't fix anything. I have also tried a third, brand new, board with no success. I have ensured that my drivers are up to date and installed, and the devices register when they are plugged into the computer as they show up in the control panel. The message I get when trying to upload is as follows

System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

Using Port : COM5
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: ser_open(): can't open device "\.\COM5": The system cannot find the file specified

I am on windows 10, I have looked around and seen a lot of people having similar issues, but a lot of them seem to have been solved by reinstalling drivers, which I have already tried. Any tips would be greatly appreciated

Avoid USB 3.0 ports.
Try another cable.
Remove anything connected to the board.
Try another computer.
Try the LOOPBACK test mentioned at the top of the forum.
Provide the full error using code tags ( </> ).