device-manager

Uninstall Device from powershell

纵饮孤独 提交于 2021-02-20 05:12:33
问题 I run automation that installs a preset OS /w Drivers and configuration. I inherited the automation second hand and there's a lot to it. I have a system with hybrid graphics and it hands on verifying the display drivers. Now, I can walk over to the machine, open device manager, right click on one of the graphics devices, click uninstall (i do not delete the driver files) and then the automation continues. Once its done, the system restarts and both device drivers are back. I am wondering if

Uninstall Device from powershell

旧巷老猫 提交于 2021-02-20 05:09:47
问题 I run automation that installs a preset OS /w Drivers and configuration. I inherited the automation second hand and there's a lot to it. I have a system with hybrid graphics and it hands on verifying the display drivers. Now, I can walk over to the machine, open device manager, right click on one of the graphics devices, click uninstall (i do not delete the driver files) and then the automation continues. Once its done, the system restarts and both device drivers are back. I am wondering if

Python Read the Device Manager Information

若如初见. 提交于 2020-01-05 05:58:50
问题 I just need to read all of the information that is listed in Device Manager with a python 2.7 script. Especially the information under 'IDE ATA/ATAPI controllers' subcategory. This is needed to detect whether the SATA drives are under AHCI or IDE mode... 回答1: My way is not perfect, but that is good solution so far for me, just for you reference. Through the devcon.exe which is in WDK(Windows Dev... Kit), and my code as below. try: output = subprocess.Popen(["devcon","status","*"], stdout

Attempting to run embedded tool from WIX msi for selective installation

自作多情 提交于 2019-12-25 14:01:25
问题 Basically I'm trying to build a WIX msi that can run devcon.exe (command line version of windows hardware manager) to detect if a particular piece of hardware is installed. If it is, then install msi A, else install msi B (A and B already exist as separate msi packages, we need automatic selective installation based on the hardware). Currently I've installed the WIX SDK and have created a WIX project that correctly builds an msi. I can do simple things like execute CustomActions to open

Attempting to run embedded tool from WIX msi for selective installation

馋奶兔 提交于 2019-12-25 14:01:18
问题 Basically I'm trying to build a WIX msi that can run devcon.exe (command line version of windows hardware manager) to detect if a particular piece of hardware is installed. If it is, then install msi A, else install msi B (A and B already exist as separate msi packages, we need automatic selective installation based on the hardware). Currently I've installed the WIX SDK and have created a WIX project that correctly builds an msi. I can do simple things like execute CustomActions to open

How to detect nonpresent devices using C#

我的梦境 提交于 2019-12-24 03:04:47
问题 My program (which is completely written in C#) has a use case in which the program will need to detect that a specific usb device is installed in the computer. In the case that the usb device is connected, WMI will solve this problem. However in the case that the device is not connected (nonpresent device), then WMI will not be able to help. I am aware that setupdi will possibly help to resolve this issue, however I am not entirely familiar with C++ and the additional effort to add a

Windows 10: Error code 52 in device manager with correct signature in cross-signed driver

一个人想着一个人 提交于 2019-12-21 21:52:28
问题 we developed a driver and signed the cat and sys file with our company's Verisign signature (SHA1 + SHA256, including certificate chain). We tested it under Windows 7 and 10 both 32 and 64 bit versions. Now we have some random customers that report that our device is not recognized correctly in device manager and that error 52 shows up: Windows cannot verify the digital signature for the drivers required for this device. A recent hardware or software change might have installed a file that is

How do I get the friendly name of a COM port in Windows?

泄露秘密 提交于 2019-12-17 16:07:24
问题 I have a GSM modem connected via USB. The modem creates 2 serial ports. The first is automatically attached to the modem, the second shows in Device Manager as "HUAWEI Mobile Connect - 3G PC UI Interface (COM6)" The second port is used to get vital information from the modem, such as signal quality; to send and receive text messages; and a whole host of other functions. I am writing an application that will wrap up some of the features provided by the second port. What I need is a sure fire

Equivalent of “Scan For Hardware Changes” in device manager doesn't work after failed installation

血红的双手。 提交于 2019-12-08 11:10:52
问题 According to the docs the C++ functions CM_Locate_DevNodeA and CM_Reenumerate_DevNode of CfgMgr32.dll should be the programatical equivalant to the menu item scan for changed hardware in the device manager. See 2nd answer to this question for managed code in C#. But in contrary to the docs, the programmatical approach doesn't work always, when the Device manager operation works. This is my case: User already plugged in the USB device No driver found My installer adds the right INF-File into

Windows 10: Error code 52 in device manager with correct signature in cross-signed driver

社会主义新天地 提交于 2019-12-06 04:51:58
we developed a driver and signed the cat and sys file with our company's Verisign signature (SHA1 + SHA256, including certificate chain). We tested it under Windows 7 and 10 both 32 and 64 bit versions. Now we have some random customers that report that our device is not recognized correctly in device manager and that error 52 shows up: Windows cannot verify the digital signature for the drivers required for this device. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source. (Code 52)