{"id":4625,"date":"2014-06-06T12:06:39","date_gmt":"2014-06-06T20:06:39","guid":{"rendered":"https:\/\/www.zubairalexander.com\/stage\/?p=4625"},"modified":"2014-06-06T12:06:39","modified_gmt":"2014-06-06T20:06:39","slug":"use-dism-commands-to-get-useful-information-on-running-operating-systems","status":"publish","type":"post","link":"https:\/\/www.zubairalexander.com\/blog\/use-dism-commands-to-get-useful-information-on-running-operating-systems\/","title":{"rendered":"Use DISM Commands to Get Useful Information on Running Operating Systems"},"content":{"rendered":"<p>Deployment Image Servicing and Management (DISM) is a command-line tool that was introduced with Windows 7 and Windows 2008 R2 and is used to service Windows images offline before deployment. DISM can be used to install, uninstall, configure, and update Windows features, packages, drivers, and international settings in a .wim file (or VHD in Windows 8\/8.1). The nice thing is that subsets of this tool can also be used to service a running operating system or get some useful information.<\/p>\n<p>Microsoft has deprecated the ImageX tool in Windows\u00a08 and replaced it with DISM for managing images. DISM is installed with Windows 8.1 and is also available in the Windows Assessment and Deployment Kit (Windows\u00a0ADK). The DISM Technical Reference for Windows 8\/8.1 and Windows Server 2012\/2012 R2 is available <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/hh824821.aspx\">here<\/a>.<\/p>\n<p>With DISM, you can get information from offline or online images. For running operating systems use the \/Online command. Here are a couple of examples.<\/p>\n<p><strong>Get Current Edition<\/strong><\/p>\n<p>You can get the current edition using the following command on a Windows Server 2012. Start the command prompt with an account that has the Administrative privileges.<\/p>\n<p><span style=\"text-decoration: underline;\">NOTE<\/span>: The DISM commands are not case-sensitive.<\/p>\n<p style=\"padding-left: 30px;\"><strong>DISM \/Online \/Get-CurrentEdition<\/strong><\/p>\n<p>The following screen shot is from a Windows Server 2012 R2 Datacenter edition.<\/p>\n<p><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2014\/06\/DISM.png\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-4628\" alt=\"DISM\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2014\/06\/DISM-300x158.png\" width=\"300\" height=\"158\" \/><\/a><\/p>\n<p>On a Windows 8 computer the results would look something like this.<\/p>\n<p style=\"padding-left: 30px;\"><strong>DISM \/Online \/Get-CurrentEdition<\/strong><\/p>\n<p><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2014\/06\/DISM_Windows8.png\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-4629\" alt=\"DISM_Windows8\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2014\/06\/DISM_Windows8-300x172.png\" width=\"300\" height=\"172\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2014\/06\/DISM_Windows8-300x172.png 300w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2014\/06\/DISM_Windows8.png 547w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>Get Information for Third-Party Drivers<\/strong><\/p>\n<p>To get information on third-party drivers use the following command:<\/p>\n<p style=\"padding-left: 30px;\"><strong>DISM \/Online \/Get-Drivers<\/strong><\/p>\n<p>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.<\/p>\n<p><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2014\/06\/DISM_GetDrivers.png\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-4630\" alt=\"DISM_GetDrivers\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2014\/06\/DISM_GetDrivers-300x211.png\" width=\"300\" height=\"211\" \/><\/a><\/p>\n<p><strong>Get Information for All the Drivers<br \/>\n<\/strong><\/p>\n<p style=\"padding-left: 30px;\">To get information for all the drives, add \/all at the end of the command.<\/p>\n<p style=\"padding-left: 30px;\"><strong>DISM \/Online \/Get-Drivers \/all<\/strong><\/p>\n<p style=\"padding-left: 30px;\">If you want to save all the information in a text file then pipe it into a text file by providing a path.<\/p>\n<p style=\"padding-left: 30px;\"><strong>DISM \/Online \/Get-Drivers \/all &gt; C:\\Drivers.txt<\/strong><\/p>\n<p style=\"padding-left: 30px;\">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&#8217;s what a sample file will look like.<\/p>\n<p style=\"padding-left: 30px;\"><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2014\/06\/SavingToTextFile.png\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-4631\" alt=\"SavingToTextFile\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2014\/06\/SavingToTextFile-202x300.png\" width=\"202\" height=\"300\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2014\/06\/SavingToTextFile-202x300.png 202w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2014\/06\/SavingToTextFile.png 450w\" sizes=\"(max-width: 202px) 100vw, 202px\" \/><\/a><\/p>\n<p><strong>Get Information for a Specific Driver Package<\/strong><\/p>\n<p style=\"padding-left: 30px;\">If you are only interested in a specific driver package then type the name of the .inf file as shown below.<\/p>\n<p style=\"padding-left: 30px;\"><strong>DISM \/Online \/Get-DriverInfo \/driver:1394.inf<\/strong><\/p>\n<p style=\"padding-left: 30px;\">Notice I used the Get-DriverInfo switch this time rather than the Get-Driver switch.<\/p>\n<p style=\"padding-left: 30px;\"><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2014\/06\/SpecificDriverInfo.png\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-4632\" alt=\"SpecificDriverInfo\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2014\/06\/SpecificDriverInfo-267x300.png\" width=\"267\" height=\"300\" \/><\/a><\/p>\n<p><strong>Getting Help<\/strong><\/p>\n<p>To get help type &#8220;DISM \/?&#8221; without the quotes.<\/p>\n<p>To get help with the commands that you can use for the running operating system type &#8220;DISM \/Online \/?&#8221;<strong>\u00a0<\/strong>without the quotes.<\/p>\n<p>To get help with the commands that you can use for the offline images type &#8220;DISM \/Offline \/?&#8221;<strong>\u00a0<\/strong>without the quotes.<\/p>\n<p>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.<\/p>\n<hr \/>\n<p><span style=\"font-size: xx-small; font-family: Verdana;\">Copyright \u00a92014 Zubair Alexander. All rights reserved.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Deployment Image Servicing and Management (DISM) is a command-line tool that was introduced with Windows 7 and Windows 2008 R2 and is used to service Windows images offline before deployment. DISM can be used to install, uninstall, configure, and update Windows features, packages, drivers, and international settings in a .wim file (or VHD in Windows [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[43,11,45,30,65,58,64],"tags":[],"class_list":["post-4625","post","type-post","status-publish","format-standard","hentry","category-articles","category-tips-tricks","category-toolsutils","category-longhorn-server","category-windows-2012","category-windows-7","category-windows-8"],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts\/4625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/comments?post=4625"}],"version-history":[{"count":0,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts\/4625\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/media?parent=4625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/categories?post=4625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/tags?post=4625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}