Having a USB port automatically disabled upon devide disconnect

Discussion in 'Windows 7 Hardware' started by nlovric, Feb 15, 2012.

  1. nlovric

    nlovric New Member

    Joined:
    Apr 16, 2011
    Messages:
    50
    Likes Received:
    0
    How can I have a USB port automatically disabled upon device disconnect?
     
  2. patcooke

    patcooke Microsoft MVP
    Staff Member Premium Supporter Microsoft MVP

    Joined:
    May 16, 2010
    Messages:
    5,456
    Likes Received:
    268
    Three main ways of disabling USB ports - in the BIOS, in Device Manager and via the Registry. The first two cannot be managed automatically, the Registry possibly and could be achieved by use of a script (the key of interest is HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor ) but there would remain the problem of re-enabling as and when required.
     

Share This Page

Loading...