How to Uninstall Drivers From a Windows Server Core

Photo of author

By Victor Ashiedu

Published

Read this quick guide to learn the two steps to uninstall a device deriver from a Windows Server 2022 Core.

Step 1: Get the Driver’s INF Name

The first step to uninstalling a driver is to get the driver’s INF file name. In this example, I want to uninstall a USB Net adapter that I no longer require.

So, I will use the command below to list all network drivers installed on the server core.

pnputil /enum-devices /class "Net"

The driver I need to uninstall is the Realtek USB GbE Family Controller. Its INF name is oem11.inf.

Step 2: Uninstall the Driver

If the device you’re removing is an external device, ensure that it is connected to the computer before you proceed with the steps in this section. From my experience, if the device is not physically connected to the computer, the driver may not be removed.
  1. To uninstall the driver, run the command below:
pnputil.exe /delete-driver oem11.inf /uninstall /force

The command runs and confirms that the driver has been uninstalled successfully.

  1. To confirm that the driver has been uninstalled, re-run the command in step 1.
pnputil /enum-devices /class "Net"

Oh, the driver is still there! Well, it is becasue you need to restart the server for the change to take effect.

How to Uninstall Drivers From a Windows Server Core
  1. Restart the server by running the command below.
Restart-Computer -confirm:$false

After the server restarts, rerun the pnputil command with the “/enum-devices” parameter. This time, the driver is gone!

pnputil /enum-devices /class "Net"
Uninstall the Driver

Conclusion

Uninstalling a device driver from a Windows Server Core is as easy as 1,2, 3!

The fiest step is to get the driver’s .INF name. After that, use its name to uninstall it and you’re done.

Not so fast as there is one last step – restart the server and voilà, the driver disappears!

I hope you enjoyed reading this guide as much as I enjoyed writing it. I truly love helping my readers solve technology problems and I like to hear from you.

Let me know what you think about this quick guide by responding to our “Was this page helpful?” feedback request form below.

About the Author

Photo of author

Victor Ashiedu

Victor is the founder of InfoPress Media, publishers of Ilifeguides and Itechguides. With 20+ years of experience in IT infrastructure, his expertise spans Windows, Linux, and DevOps. Explore his contributions on Itechguides.com for insightful how-to guides and product reviews.

Related Articles

Get in Touch

We're committed to writing accurate content that informs and educates. To learn more, read our Content Writing Policy, Content Review Policy, Anti-plagiarism Policy, and About Us.

However, if this content does not meet your expectations, kindly reach out to us through one of the following means:

  1. Respond to "Was this page helpful?" above
  2. Leave a comment with the "Leave a Comment" form below
  3. Email us at [email protected] or via the Contact Us page.

Leave a comment