When you say it turn your stuff off and on, do you mean the laptop turns off and on when you connect a USB device? Please do try these troubleshooting steps that may help.
- First is to do a hard reboot, remove the battery and unplug the AC adapter then press and hold the power button for 20 seconds then try booting it up again.
- If the same problem will persist, uninstall/reinstall the USB drivers from Device Manager.
- If it will still not work do reinstall Windows itself.
- Lastly, if all these will not work that could only mean it's a hardware problem and your motherboard is short circuiting.