To adjust this via a script, you must first determine the GUID and Class of the device, and then change the “PnPCapabilities to 280.
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0007" /v "PnPCapabilities" /t REG_DWORD /d "280" /f
/BG
Just found this. Looks like it’s working great. Enjoy!
https://community.spiceworks.com/topic/2190400-disable-usb-hub-allow-computer-turn-off-save-power