Driver installation tool devcon failed when installing custom driver.

Trevor Wiseman 10 Reputation points
2024-07-30T21:05:06.8966667+00:00

Hello,

I am following the "Write a Hello World Windows Driver (KMDF)" tutorial, but I get failures when running devcon or pnputil. When I run

devcon install KMDFHelloWorld.inf Root\KMDFHelloWorld

I get the error

Device node created. Install is complete when drivers are installed...

Updating drivers for Root\KMDFHelloWorld from C:<filepath>

devcon.exe failed.

and when I run

pnputil /add-driver KMDFHelloWorld.inf

I get

Adding driver package: KMDFHelloWorld.inf

Failed to add driver package: A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider.

Total driver packages: 1

Added driver packages: 0

I did install the driver files in the test computer and followed the tutorial from there. I am running both devcon and pnputil in the same folder as the driver files which are the .cat, .inf, .sys, and .cer files. It sounds like in the tutorial there might be other files which I need. I also made sure to install the certificate file on my test computer.

Any help would greatly be appreciated.

Windows for business | Windows Server | User experience | PowerShell
Windows development | Windows Driver Kit (WDK)
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.