USB device not recognized.
is in no way related to attrib command or hidden files.
It may be a hardware issue
Did you try USB different ports?
Turn off your PC,remove the power cables(especially UPS ) and wait for 3O minutes,reconnect them and turn on your PC and try to plug in your hard disk.
See if the PC detects them
Also check if it works on other PC