Questions tagged [devcon]

DevCon is a command line device manager for Windows system used to list , enable, disable, install, configure, and remove devices.

DevCon is built-in command and needs to be downloaded from Mcrosoft's site.

Dcoumentation:

42 questions
1
vote
2 answers

Update driver for one of the same model network adapters

There are multiple network adapters of the same model in the target computer. As below, they are all Intel I211. PCI\VEN_8086&DEV_1539&SUBSYS_00008086&REV_03\0060E0FFFF6336A000 Name: Intel(R) I211 Gigabit Network Connection Hardware IDs: …
YantingChen
  • 768
  • 1
  • 12
  • 15
1
vote
2 answers

Using Devcon to disable a USB port

I am trying to find a way to be able to enable/disable a USB port on my computer via command prompt or powershell. I have looked EVERYWHERE and the only possible solution I have found is by using the devcon disable command. However, when I try to…
Taylor
  • 23
  • 1
  • 3
1
vote
0 answers

remove com port using devcon (for loop)

I was trying to delete com port using command line. Right now I am using devcon.exe that is a part of windows WDK. I have tried using devcon findall =ports and used devcon remove "@some specific id". It worked totally well. Instead of removing them…
Mr_U4913
  • 1,294
  • 8
  • 12
1
vote
0 answers

devcon restart not working on windows7

I am trying to run devcon command on windows7 as below but this is stuck forever,if I right-click on "scan for hardware changes" it is stuck aswell,how can I activate a COM port via commandline using devcon?is there a better way? devcon.exe restart…
Ritz
  • 1,193
  • 6
  • 15
  • 26
1
vote
1 answer

Mapping DiskDrive to Storage Controllers

I have a task to gather information regarding the storage controller on which the disk drive is present for verification purpose. After some research, all I can find is use of devcon tool to gather necessary information. I can get storage controller…
bicepjai
  • 1,615
  • 3
  • 17
  • 35
1
vote
1 answer

Using pipe command in a batch file

I'm trying to write a batch file that searches through devices using devcon and then runs "devcon enable" on these devices. My batch file looks like this: for /f "tokens=1 delims=:" %%i in ('devcon find *VENDER_INFO* ^| findstr /C:"DEVICEINFO"') do…
TrolliOlli
  • 909
  • 2
  • 10
  • 18
1
vote
1 answer

Differences between batch file and command prompt on windows

I am trying to use devcon in order to install/remove a device using a .inf driver on windows 7. The device is a touch screen that sends different data on windows xp or 7. I inserted the devcon calls into a batch file and call the file from a c#…
DOFHandler
  • 225
  • 2
  • 12
1
vote
2 answers

devcon.exe - disable net device failed

Windows 7 devcon can't disable and enable the nic, could you please help me? C:\Users>devcon status =net @PCI\* PCI\VEN_10EC&DEV_8168&SUBSYS_368217AA&REV_07\07000000684CE00000 Name: Realtek PCIe GBE Family Controller Driver is…
wuhlcom
  • 119
  • 1
  • 9
1
vote
1 answer

Find device by port using devcon

I've been looking everywhere, but cannot find that. How can I find device using devcon which is connected to (e.g) COM5? I've tried devcon find devcon resurces =ports which shows all devices, but I need only that one.
user1617141
  • 115
  • 1
  • 11
0
votes
1 answer

Installing the driver using devcon and pnputil

After installing my driver, the virtual device should be created (Win 10). When I install the driver in the first way: devcon install INFfile HardwareID everything is fine, the installation is successful, the virtual device is created, I can see it…
0
votes
0 answers

devcon.exe no devices disabled after everything that should have worked

I am having an issue where every time I try to disable a keyboard (and only a keyboard) it will not let me. I have tried everything and still nothing C:\Users\x\Documents>devcon disable =keyboard ACPI\LEN0071\4&166838075$0 …
0
votes
0 answers

Split a list of results from devcon in python

I'm writing a python script where I'm trying to gather a list device connected via USB with the goal of removing the USB ports so I can readd them guaranteeing a specific cable is COM3. I have a batch file that does this, however I need to add more…
DiAmbre
  • 1
  • 2
0
votes
1 answer

Devcon Disable Port vs Digital Relay

I have a device connected to a USB and it periodically sends data to my PC. During the time it is not sending data, the USB cable needs to be removed, else, the device won't work (a fail-safe feature, if the USB cable is connected and attached to…
axia_so2
  • 27
  • 6
0
votes
0 answers

How can I install a driver using devcon for a driver built on the host machine?

Is it possible to install a driver that I built on my local machine? I don't have a second device that I can deploy to.
0
votes
1 answer

Batch: How to use "devcon status" return as IF condition?

I am having trouble with my digitizer and pen. The palmrejection detects the pen only when it's like 1cm above the screen. So I'm trying to make a batch which disables or enables the touchscreen when executed. devcon disable…
Kiljab
  • 3
  • 2