To correct a code 10 error

I uninstalled the USB hubs, leaving the controllers in place and disconnected all usb devices. The only way I could shut down the machine was to press the power on/off button. I disconnected the mains plug and waiited.

On reconnecting and booting (I was asked to start Windows normally - due to switch off) the Windows side bar (as usual) failed to start and interrupted the driver installation, but that appears to have had no effect.

This is my question:

When I only uninstalled the usb hubs and rebooted, it did not work. Why does it work when the devices are disconnected as is the mains.

Best wishes.

A