To stop your device from keeping USB ports powered when shut down, access the BIOS/UEFI and look for options like USB Standby Power, USB Power Share, or enable ErP mode under Power Management. Adjusting these settings will turn off USB power delivery when the PC is off.