Remove a Driver Package from the Driver Store
Applies To: Windows Server 2008
The driver store is a protected area of the computer that contains device driver packages that have been approved for installation on the computer. For more information about the driver store, see Understanding Device and Driver Installation.
Removing a device driver package from the store does not uninstall any currently operational devices that use its driver. The installed copies of the driver files are not changed. Only the copy of the driver package in the store is deleted. After removing the package from the store, if a new device that uses this driver is plugged into the computer, Windows must search for the driver package by using the standard locations, which can include prompting the user for media.
This topic provides procedures that you can use to remove a device driver package from the driver store.
Determine the name of the driver package in the driver store
Remove a staged driver package from the driver store
Membership in the local Administrators group, or equivalent, is the minimum required to complete this procedure. Review the details in "Additional considerations" in this topic.
Determine the name of the driver package in the driver store
Before you can remove the driver package, you need to know its name in the driver store. The .inf file name is changed to OEM*#*.inf, where # is a unique number.
To determine the name of the driver package in the driver store
- Open a command prompt that has administrator privileges. Click Start, All Programs, and Accessories, then right-click Command Prompt, and then click Run as Administrator.
Note
The PnPUtil command-line tool does not work unless you run the command prompt as an administrator.
If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.
At the command prompt, type the command:
pnputil.exe -e
Read the entries in the output to find the description of your package and its file name.
Remove a staged driver package from the driver store
After you know the .inf file name of the package in the driver store, you can remove the device driver package.
To remove a staged driver package from the driver store
- Open a command prompt with administrator privileges. Click Start, All Programs, and Accessories, right-click Command Prompt, and then click Run as Administrator.
Note
The PnPUtil tool does not work unless you run the command prompt as an administrator.
If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.
At the command prompt, type the command:
pnputil.exe -d Oem#.inf
Make sure to replace the # with the number of the .inf file you want to remove.
Note
To see all of the command-line parameters for the PnPUtil tool, type the following at the command prompt: pnputil -?
- If the computer reports that the driver package is in use by a currently installed device, then you must either uninstall the device first, or use the
-f
on thepnputil
command to force deletion of the package.
Additional Considerations
- By default, membership in the Administrators group, or equivalent, is the minimum required to modify drivers in the driver store. A standard user can be delegated permission to install or uninstall a driver package. To delegate the right, place the device setup class for the driver in the policy Allow non-administrators to install drivers for these device classes. For more information, see Configure Computer Policy to Allow Non-Administrators to Install Specific Devices.
Additional references
Uninstalling and Reinstalling Devices
Understanding Device and Driver Installation
Stage a Device Driver in the Driver Store
Understanding the Process of Uninstalling Devices