JSI Tip 5551. How do I remove OEM drivers from Windows 2000?

Jerold Schulman

July 25, 2002

1 Min Read
ITPro Today logo in a gray background | ITPro Today

If you wish to remove an OEM driver and revert to the Microsoft driver, you must locate the appropriate %Systemroot%InfOEM#.inf file, where # is a system assigned number. If you edit each %Systemroot%InfOEM#.inf file, you can determine which one installs the OEM driver that you wish to remove. Once you determine the %Systemroot%InfOEM#.inf file, you should move it, and its' matching %Systemroot%InfOEM#.pnf file, to a different folder, in case you every want to reinstall it.

NOTE: The following oeminf.bat script may assist you in locating the correct %Systemroot%InfOEM#.inf file:

@echo offsetlocalcd /d "%Systemroot%inf"for /f "Tokens=*" %%i in ('dir /b oem*.inf') do set file=%%i&call :parseendlocalgoto :EOF:parseset mfg=Nfor /f "Tokens=*" %%j in ('type "%file%"') do set line=%%j&call :parse1goto :EOF:parse1if "%mfg%" EQU "Y" goto doitif "%line:~0,1%" EQU "[" goto foundgoto :EOF:doitset mfg=N@echo %file% %line%goto :EOF:foundif /i not "%line:~0,14%" EQU "[Manufacturer]" goto :EOFset mfg=Y

Once you have moved the appropriate file(s), use Device Manager to right-click the device and press Uninstall. After the uninstall, restart your computer. When you log on, you should receive a New Hardware Found dialog for the device. Press Next to start the Found New Hardware Wizard. Select Search for a Suitable Driver and press Next. The standard driver should install.

NOTE: To use the OEM driver again, move the OEM#.inf and OEM#.pnf file(s) to the %Systemroot%Inf folder, uninstall the device using Device Manager, and restart your computer.



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like