If all USB ports gone at one shot i think something to do with driver.
It did happen to me when i switched from one mobo to another one my windows couldnt recognize the usb ports even in safe mode. End up by reinstalling windows it solved my problem.