How to detect using c# if a pendrive is plugged into a USB port?

前端 未结 4 1399
孤街浪徒
孤街浪徒 2020-12-04 16:52

Is there a way to find out when in a LAN anyone plugs in a pendrive to the USB port? Programatically (in C# preferably) or through some tool. Basically I\'d imagine a clien

4条回答
  •  不思量自难忘°
    2020-12-04 17:39

    If its a small environment and you want to prevent any usb devices from being used, then you can disable the usb ports in device manager, make sure no users are set up as adminstrators on the machines and that should prevent all usb use.

    And if you are really paranoid about it, just open the machines and plug out the ports.

提交回复
热议问题