Using Devcon.exe

The issue comes from me using devcon piped to find to determine if the device is plugged in so that it can be automatically configured. If I can't remove it, it will be detected by my script even if it isn't plugged in. I've tested this with multiple USB printers and one USB mouse, all exhibit the same behavior, which leads me to believe this DevCon - Status Finds, Disable Doesn't.? DevCon - Status Finds, Disable Doesn't.? (too old to reply) Spiggy Topes 2010-08-06 18:36:35 UTC. Permalink. I'm running Win 7 64-bit on an AMD processor. Most times, when I boot, my network adapter fails to initialize properly. I've found if I 5 Ways to Remount Ejected or Safely Removed USB Device Amazingly Windows 8.1 remounts the ejected Drive after cycling the disable and enable twice. Strangely this method does not work on Windows 7. You can automate this task automatically using a batch file with devcon.exe. DevCon is a command line utility that can perform a number of actions such as enabling and disabling a device in Device Manager.

DevCon disables the device even if the device is already disabled. Before and after disabling a device, use the DevCon Status operation to verify the device status. Before using an ID pattern to disable a device, determine which devices will be affected. To do so, use the pattern in a display command, such as devcon status USB\* or devcon hwids

I have been using devcon in a batch file, but when scheduled (task scheduler) to Run as Startup Script, it runs under the "System" context, whereas devcon requires admin privileges. Hence it's failing.

Devcon

Home - Devcon More than 60 years ago, Devcon USA introduced an alternative to welding and brazing with “Plastic Steel”, a metal-filled epoxy putty. Today, Devcon consists of an extensive range of highly effective epoxy and urethane products developed for maintenance, repair and overhaul (MRO) applications [SOLVED] Disable / Enable drivers via batch file or logon Jun 24, 2015 Disable & Re-enable Hardware at system startup Solutions I have been using devcon in a batch file, but when scheduled (task scheduler) to Run as Startup Script, it runs under the "System" context, whereas devcon requires admin privileges. Hence it's failing. devcon-win · PyPI