Do this:
Go to Control Panel, Power Options. Click the Advanced tab and look near the bottom for an entry that says, "When I press the power button on my computer:" It should say "Shut Down" and if it doesn't show that, change it.
Unplug every USB device except the keyboard.
Now go to System and open the device manager, and remove everything under Universal Serial Bus Controllers. To remove them, double click on each of the entries under this category and choose Driver from the tabs up at the top. There are several buttons under this tab, one of them is Uninstall. Click this button - it will warn you that you are about to remove the device from your system. Click OK, as this is what you want to do. Repeat this with every entry under Universal Serial Bus controllers until they are all gone. Reboot your system, and windows will detect the new hardware and re-install the drivers. Under normal circumstances, this should be enough to get your USB ports working again.
You will loose USB keyboard control when doing this. Hopefully, the last one you uninstall will be handling the keyboard. Press the power button for just a second to invoke the Windows shutdown, then re-start.