Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Generic User Avatar
* * * * * 1 votes

Uninstall Offline Windows OS Drivers with Dism Command


  • Please log in to reply
6 replies to this topic

#1 FreeBooter

FreeBooter

  •  Avatar image
  • Members
  • 5,056 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Turkey - Adana
  • Local time:06:23 PM

Posted 21 June 2016 - 12:10 PM

Uninstall Offline Windows OS Drivers with Dism Command

 
You can uninstall the third party drivers from offline Windows Operating Systems using Command Prompt within Windows Recovery Environment.
Uninstalling third party driver while Windows OS offline can be helpful in situations where Windows OS will not boot or have a Blue Screen Of Death (BSOD) because of a driver you have installed.
 
Dism command can only be use with following operating systems:

  • Windows 7
  • Windows 8
  • Windows 8.1
  • Windows 10

Boot the computer into Windows Recovery Environment and open the Command Prompt.
 
Display information about all drivers in an offline operating system.
 

Dism /image:D:\ /Get-Drivers

 
 
uh1WzPo.png
 
 
Replace the D:\ drive letter with the assigned drive letter of the Windows OS installed partition.
 
 

Useful information!
In computing, an INF file or Setup Information file is a plain-text file used by Microsoft Windows for the installation of software and drivers. INF files are most commonly used for installing device drivers for hardware components.


 
Display information about an INF file installed.
Installed 3rd party drivers will be named OEM1.inf, OEM2.inf, and so on.
Use the Published Name: from the list generated by the /Get-Drivers parameter to view information on installed drivers.
 
Example:
 

Dism /image:D:\ /Get-DriverInfo /Driver:oem1.inf

 
 
WxomQ5O.png
 
Replace the D:\ drive letter with the assigned drive letter of the Windows OS installed partition.
Also replace the oem1.inf driver name with driver name you want to view its details.
 

 

Remove driver package from an offline Windows operating system.

 

Example:
 

DISM /Image:D:\ /Remove-Driver /Driver:oem1.inf

 
gATf12I.png
 
Replace the D:\ drive letter with the assigned drive letter of the Windows OS installed partition.
Also replace the oem1.inf driver name with driver name of the driver you want to uninstall.


Helping public with their PC problems as have been doing for years.

Please subscribe to my YouTube channel: https://www.youtube.com/c/Freebooter


BC AdBot (Login to Remove)

 


#2 Suncatcher

Suncatcher

  •  Avatar image
  • Members
  • 49 posts
  • OFFLINE
  •  
  • Local time:04:23 PM

Posted 03 June 2017 - 05:10 AM

How to delete default drivers?

If I try this command with default drivers, I get

Found 1 driver package(s) to remove.Removing 1 of 1 - agp.inf: 
Error - The specified driver cannot be removed. Removing a default driver package is not supported.


#3 FreeBooter

FreeBooter
  • Topic Starter

  •  Avatar image
  • Members
  • 5,056 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Turkey - Adana
  • Local time:06:23 PM

Posted 03 June 2017 - 07:13 AM

You're only allowed removing third party drivers.

Helping public with their PC problems as have been doing for years.

Please subscribe to my YouTube channel: https://www.youtube.com/c/Freebooter


#4 themetalhead

themetalhead

  •  Avatar image
  • Members
  • 18 posts
  • OFFLINE
  •  
  • Local time:05:23 PM

Posted 12 July 2019 - 02:18 AM

Freebooter, GOD BLESS mate.

 

This is exactly what i was after.

I then run the export driver commands and set to my preferred destination.

 

 

Dism /image:D:\ /Export-Driver /Destination:<drive letter>:\<pre-existing folder name>

 

I have a total of 198 drivers in my list, and on offline RE screen does not allow to scroll from 0 to 198.

So i did the extraction on an external drive and was really hoping it would extract it as listed (oem0, oem1 etc).

 

I know my BSOD/STOP message with PNP DETECTED FATAL ERROR, is from a bad driver.

As this started only after i installed two different versions of the same software that one ouputs data to TCP and the other imports data from TCP.

So i am sure that the computer is being messed up at this point as its trying to load drivers to import and export data from TCP, at the same time, ending to STOP message.

 

Makes sense?

Is there a way to save the drivers as listed with oem0, oem1 names?

Again, i cant scroll through the full list, rather seeing a part of it.

 

Or maybe possible to see the list in a way similar to dir/p ??

 

Thanks,

the metalhead.



#5 FreeBooter

FreeBooter
  • Topic Starter

  •  Avatar image
  • Members
  • 5,056 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Turkey - Adana
  • Local time:06:23 PM

Posted 12 July 2019 - 03:43 AM

You can execute command as below to scroll through all of them.

Dism /image:D:\ /Get-Drivers | more

Helping public with their PC problems as have been doing for years.

Please subscribe to my YouTube channel: https://www.youtube.com/c/Freebooter


#6 themetalhead

themetalhead

  •  Avatar image
  • Members
  • 18 posts
  • OFFLINE
  •  
  • Local time:05:23 PM

Posted 12 July 2019 - 08:23 AM

Thank you freebooter.

 

This was much better and was able to detect all drivers and uninstall. Though the PC still will not boot.

I will open a separate new topic in the forum with my findings so far.

 

Really do appreciate though the great info here. :thumbup2:



#7 FreeBooter

FreeBooter
  • Topic Starter

  •  Avatar image
  • Members
  • 5,056 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Turkey - Adana
  • Local time:06:23 PM

Posted 12 July 2019 - 09:51 AM

You are very welcome!


Helping public with their PC problems as have been doing for years.

Please subscribe to my YouTube channel: https://www.youtube.com/c/Freebooter





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users