Use DISM Commands to Get Useful Information on Running Operating Systems
DISM /Online /Get-CurrentEdition
The following screen shot is from a Windows Server 2012 R2 Datacenter edition.DISM /Online /Get-CurrentEdition
DISM /Online /Get-Drivers
The results will vary depending on the operating system. Windows Server 2012 may have only a few third-party drivers while Windows 8.1 may have dozens. The following screenshot is from Windows Server 2012 R2.To get information for all the drives, add /all at the end of the command.
DISM /Online /Get-Drivers /all
If you want to save all the information in a text file then pipe it into a text file by providing a path.
DISM /Online /Get-Drivers /all > C:\Drivers.txt
The resulting file will be a huge file with tons of drivers listed. This is a good way to document all the drivers that are currently installed on your operating system. Here's what a sample file will look like.
Get Information for a Specific Driver PackageIf you are only interested in a specific driver package then type the name of the .inf file as shown below.
DISM /Online /Get-DriverInfo /driver:1394.inf
Notice I used the Get-DriverInfo switch this time rather than the Get-Driver switch.
Getting Help To get help type "DISM /?" without the quotes. To get help with the commands that you can use for the running operating system type "DISM /Online /?" without the quotes. To get help with the commands that you can use for the offline images type "DISM /Offline /?" without the quotes. As I mentioned at the beginning of this article, the DISM commands are not case-sensitive. I have been using the upper case just to make them more readable.Copyright ©2014 Zubair Alexander. All rights reserved.