C# Disable/Enable USB ports

前端 未结 2 1915
陌清茗
陌清茗 2021-01-28 01:55

I want to disable/enable all usb ports at once.
I tried the following:

Changed the registry (with admin privileges):

//disable USB storage...
Micros         


        
2条回答
  •  一整个雨季
    2021-01-28 02:22

    make USBSTOR value to 4 and restart the PC. Another way is to disable in BIOS. Most of the computer manufacturers support this. But it will disable not only storage but all.

提交回复
热议问题