Windows 10: Error when using devcon to disable a USB port.

Discus and support Error when using devcon to disable a USB port. in Windows 10 Software and Apps to solve the problem; I would like to have a usb port on my pc disable using devcon in a powershell script but it wont disable but will enable. I have tried the both of the... Discussion in 'Windows 10 Software and Apps' started by Paul_D_UK, Apr 16, 2025.

  1. Paul_D_UK Win User

    Error when using devcon to disable a USB port.


    I would like to have a usb port on my pc disable using devcon in a powershell script but it wont disable but will enable. I have tried the both of the hardware IDs but that hasnt helped. System infomation: windows 11 Pro, i5 12600k, nvidia 4060 oc, western digital black sn770 2tb, asus tuf gaming b760m-plus wifi II.My error is as follows:One or more monitored apps are running. Enabling USB device 'USB\VID_145F&PID_024B&REV_0110&MI_00'... USB\VID_145F&PID_024B&MI_00\7&21E3C7FA&0&0000 : Enabled 1 devices are enabled. No monitored apps are running.

    :)
     
    Paul_D_UK, Apr 16, 2025
    #1
  2. RockFoxx Win User

    Windows 10 USB not recognized after devcon disable

    I'm running Windows 10 Pro version 1703

    I was looking for a way to programmatically “Safely Remove Hardware” and I found reference to the devcon.exe. I found devcon program in Windows Driver Kit (WDK) and I think it was version 7. I couldn’t get it to disable a USB flash drive “SanDisk Cruzer
    USB Device”. Then I discovered a WDK for Windows 10 1703 and I installed it. I tried running in Powershell

    .\devcon disable USBSTOR\DISK”&”VEN_SANDISK*

    and still it wouldn’t work. I then tried PpwerShell in Administrator mode and the disable worked.

    But now I couldn't get it to enable. I could not access my flash drive even after several restarts and many tries at devcon enable and devcon restart. It was not shown in Device Manager. I took my flash drive to another PC and it worked perfectly. I even
    reformatted it on the other PC. When I plugged it into my main PC it beeped but would not show up in Device Manager or Windows Explorer.

    As a last resort I did a System Restore to a day ago before I installed Devcon. Now the flash drive is recognized and shows up in Device Manager and Windows Explorer.

    Is there a problem with devcon? Or maybe I messed it up by trying Devcon version 7 followed by devcon 10.
     
    RockFoxx, Apr 16, 2025
    #2
  3. Windows 10 USB not recognized after devcon disable

    Hi Rock,

    There are reasons why you are encountering issues after using DevCon
    to disable your flash drive. The DevCon functions should work in these type of scenarios. We recommend that you read this

    article
    to learn more about how DevCon works as an alternative to Device Manager.

    Should you have additional questions, feel free to post them on this thread.
     
    Jefferson Ore, Apr 16, 2025
    #3
  4. DaveM121 Win User

    Error when using devcon to disable a USB port.

    Disable a USB Port

    Hi Eduardo

    Disabling that USB Port, may also disable any ports beside it, do you have USB ports on another part of your PC?

    Open Device Manager (accessible by right clicking your Start Button)

    At the bottom of the device list, expand the 'Universal Serial Bus Controllers' section

    How many devices have 'Hub' in the name, is there more than 1?

    If so, right click one f those, then choose Properties and choose the Driver tab, is there an option to disable that there?

    If that is the wrong hub, re-enable that and move to the next hub device, until you find the one for that USB port . . .
     
    DaveM121, Apr 16, 2025
    #4
Thema:

Error when using devcon to disable a USB port.

Loading...
  1. Error when using devcon to disable a USB port. - Similar Threads - Error using devcon

  2. Error when using devcon to disable a USB port.

    in Windows 10 Gaming
    Error when using devcon to disable a USB port.: I would like to have a usb port on my pc disable using devcon in a powershell script but it wont disable but will enable. I have tried the both of the hardware IDs but that hasnt helped. System infomation: windows 11 Pro, i5 12600k, nvidia 4060 oc, western digital black sn770...
  3. How to disable unknown USB device using devcon or any command line app?

    in Windows 10 Gaming
    How to disable unknown USB device using devcon or any command line app?: In the device manager there is "Unknown USB Device Device Descriptor Request failed"If I disable or uninstall the device then enable or "scan for changes" the device is activated and works although it is no longer shown in the device manager. It does show up using...
  4. How to disable unknown USB device using devcon or any command line app?

    in Windows 10 Software and Apps
    How to disable unknown USB device using devcon or any command line app?: In the device manager there is "Unknown USB Device Device Descriptor Request failed"If I disable or uninstall the device then enable or "scan for changes" the device is activated and works although it is no longer shown in the device manager. It does show up using...
  5. How do disable unknown USB device using devcon or any command line app

    in Windows 10 Gaming
    How do disable unknown USB device using devcon or any command line app: In the device manager there is "Unknown USB Device Device Descriptor Request failed"If I disable or uninstall the device then enable or "scan for changes" the device is activated and works although it is no longer shown in the device manager. It does show up using...
  6. How do disable unknown USB device using devcon or any command line app

    in Windows 10 Software and Apps
    How do disable unknown USB device using devcon or any command line app: In the device manager there is "Unknown USB Device Device Descriptor Request failed"If I disable or uninstall the device then enable or "scan for changes" the device is activated and works although it is no longer shown in the device manager. It does show up using...
  7. DISABLE USB PORT

    in Windows 10 Network and Sharing
    DISABLE USB PORT: HI, I FOOLISHLY DISABLED USB PORT OPTION FROM BIOS NOW NEITHER KEYBOARD NOR MOUSE IS WORKING PLEASE HELP ME https://answers.microsoft.com/en-us/windows/forum/all/disable-usb-port/0ed72132-5610-414c-b7cf-ed6add623b1c
  8. Disabling USB ports when computer is sleeping?

    in Windows 10 Ask Insider
    Disabling USB ports when computer is sleeping?: Hello, How do you disable power to USB devices when a computer is sleeping (using Windows 10)? I have my computer in my room and all the lights (mic, mouse, etc) are annoying at night when I'm trying to sleep, but would prefer not to have to completely shut the computer down...
  9. Disable a USB Port

    in Windows 10 Drivers and Hardware
    Disable a USB Port: Im having a hughe problem with a USB Port on my laptop I accidently rmoved a small blsck piece from the USB Port and now windows its showing an annoying icon and playing a sound that notification is making my computer stop working specially youtube, it pauses the video how...
  10. Update disabled USB Ports.

    in Windows 10 Drivers and Hardware
    Update disabled USB Ports.: Windows 10 USB 3.0 Ports got Disabled after a recent failed update try. KB3081438 which downloads, but fails to install [HERE] The ports are powered since i can connect my mobile to the 'disabled' ports and yet charge the device but cannot do any data transfer. But the...