{"id":30783,"date":"2022-12-11T13:29:21","date_gmt":"2022-12-11T07:59:21","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=30783"},"modified":"2022-12-11T13:29:21","modified_gmt":"2022-12-11T07:59:21","slug":"dism-exe-not-recognized-cmdlet-ps","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/dism-exe-not-recognized-cmdlet-ps\/","title":{"rendered":"[Error] Dism.exe is not recognized as the name of a cmdlet"},"content":{"rendered":"<p>When you run a DISM.exe command-line in PowerShell, the command may not be recognized. The following error is shown when you do so:<!--more--><\/p>\n<pre class=\"err\">dism.exe : The term 'dism.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.\r\nAt line:1 char:1\r\n+ dism.exe\r\n+ ~~~~~~~~~\r\n+ CategoryInfo : ObjectNotFound: (dism.exe:String) [], CommandNotFoundException\r\n+ FullyQualifiedErrorId : CommandNotFoundException<\/pre>\n<p>When you open a Command Prompt and run DISM, you get this error:<\/p>\n<pre class=\"err\">'dism.exe' is not recognized as an internal or external command, operable program or batch file.<\/pre>\n<p>However, the command may work correctly if you mention the full path to <code>Dism.exe<\/code> &#8211; i.e., <code>C:\\Windows\\System32\\Dism.exe<\/code><\/p>\n<h2>Cause<\/h2>\n<p>The above error occurs if <code>Windows\\System32<\/code> is not included in the system <a href=\"https:\/\/www.winhelponline.com\/blog\/restore-path-environment-variable-deleted\/\">PATH variable<\/a>.\u00a0On the affected computer(s), the &#8220;<a href=\"https:\/\/www.winhelponline.com\/blog\/restore-path-environment-variable-deleted\/#sysdm_cpl\">Edit environment variable<\/a>&#8221; dialog may show that the <code>System32<\/code> folder is not included in PATH.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30784\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/12\/dism-system32-path-missing-1.png\" alt=\"dism.exe not recognized - add system32 to PATH\" width=\"527\" height=\"196\" \/><\/p>\n<div class=\"rp\"><strong>RELATED:<\/strong> <a href=\"https:\/\/www.winhelponline.com\/blog\/restore-path-environment-variable-deleted\/\">How to Recover PATH Variable After Deleting it Accidentally<\/a><\/div>\n<h2>Resolution<\/h2>\n<p>To resolve the &#8220;dism.exe is not recognized&#8221; error, add <code>System32<\/code> to the <code>%PATH%<\/code> variable.<\/p>\n<ol>\n<li>Launch the System Properties dialog. To do so, right-click Start, and click Run. Type \u201c<code>sysdm.cpl<\/code>\u201d and click OK.<\/li>\n<li>Select the \u201cAdvanced\u201d tab, and click \u201cEnvironment Variables..\u201d<\/li>\n<li>Under \u201cSystem variables,\u201d double-click \u201cPath.\u201d<\/li>\n<li>In the \u201cEdit environment variable\u201d dialog, add each of the directories listed below:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-26689\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/05\/path-env-variable-sysdm.png\" alt=\"path environment variable - system properties\" width=\"678\" height=\"331\" \/><\/li>\n<li>After adding <strong>%SystemRoot%<\/strong> and <strong>%SystemRoot%\\System32<\/strong>, move them to the top of the list, as shown above.<\/li>\n<li>Click OK, OK, OK to close the dialog boxes.<\/li>\n<\/ol>\n<p>That should resolve the issue.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you run a DISM.exe command-line in PowerShell, the command may not be recognized. The following error is shown when you do so:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[8,869],"tags":[106,160,191],"class_list":["post-30783","post","type-post","status-publish","format-standard","hentry","category-windows-10","category-windows-11","tag-command-prompt","tag-dism","tag-error-messages"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":29438,"url":"https:\/\/www.winhelponline.com\/blog\/dism-error-2-start-servicing-process\/","url_meta":{"origin":30783,"position":0},"title":"DISM Error 2 While Attempting to Start the Servicing Process","author":"Ramesh","date":"October 23, 2022","format":false,"excerpt":"When you run the DISM utility in Windows to clean up the component store or repair Windows system files, error 2 (0x80070002 - ERROR_FILE_NOT_FOUND) may appear: Deployment Image Servicing and Management tool Version: 10.0.22621.1 Error: 2 An error occurred while attempting to start the servicing process for the image located\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"80070002 dism error 2","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/10\/dism-error-2.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/10\/dism-error-2.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/10\/dism-error-2.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":6729,"url":"https:\/\/www.winhelponline.com\/blog\/windows-update-0x8024a223-error-windows-10\/","url_meta":{"origin":30783,"position":1},"title":"[Fix] Windows Update Error 0x8024a223 in Windows 10","author":"Ramesh","date":"November 3, 2018","format":false,"excerpt":"When you attempt to scan for updates or when installing an update, the Windows Update page may throw the error 0x8024a223. Here is the full error message verbatim: There were some problems installing updates, but we'll try again later. If you keep seeing this and want to search the web\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"Windows Update Error 0x8024a223","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/11\/wu-error-0x8024a223.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/11\/wu-error-0x8024a223.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/11\/wu-error-0x8024a223.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":59814,"url":"https:\/\/www.winhelponline.com\/blog\/sfc-0xc0000017-error\/","url_meta":{"origin":30783,"position":2},"title":"[Fix] Error 0xc0000017 when running DISM or SFC","author":"Ramesh","date":"July 28, 2023","format":false,"excerpt":"When you run the System File Checker (Sfc.exe) or DISM, the error code 0xc0000017 may appear. The following is the full error message: sfc.exe - Application Error The application was unable to start correctly (0xc0000017). Click OK to close the application. Dism.exe - Application Error The application was unable to\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"sfc.exe error 0xc0000017","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/07\/sfc-error-0xc0000017.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":49804,"url":"https:\/\/www.winhelponline.com\/blog\/cleanup-component-store-winsxs\/","url_meta":{"origin":30783,"position":3},"title":"How to Clean Up the Component Store (WinSxS folder)","author":"Ramesh","date":"May 28, 2023","format":false,"excerpt":"The Component Store or the WinSxS folder, located under the Windows folder, is used to support the functions needed to customize and update Windows. Whenever a new update or a FOD package is installed, it adds hundreds or thousands of files into the component store. The superseded components will be\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"winsxs folder contents","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/05\/winsxs-folder-contents.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/05\/winsxs-folder-contents.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/05\/winsxs-folder-contents.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/05\/winsxs-folder-contents.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":78009,"url":"https:\/\/www.winhelponline.com\/blog\/0xc0000142-cmd-powershell-sfc-dism\/","url_meta":{"origin":30783,"position":4},"title":"Error 0xC0000142 Launching CMD, PowerShell, SFC, or DISM","author":"Ramesh","date":"March 2, 2025","format":false,"excerpt":"When you start PowerShell or Command Prompt, the error code 0xc0000142 may appear. Any console tool, such as sfc.exe or dism.exe may throw the same error. The application was unable to start correctly (0xc0000142). Click OK to close the application. SIMILAR: [Fix] Error 0xc0000017 when running DISM or SFC Cause\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"0xc0000142 error when launching cmd.exe or powershell.","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2025\/03\/0xc0000142-cmd-powershell.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":5957,"url":"https:\/\/www.winhelponline.com\/blog\/fix-dism-error-50-minint-windows-pe-servicing\/","url_meta":{"origin":30783,"position":5},"title":"DISM Error 50 or Error 87 &#8220;DISM does not support servicing Windows PE&#8221;","author":"Ramesh","date":"November 22, 2017","format":false,"excerpt":"When you run the DISM tool (with the \/online switch) to scan or restore the health of the operating system components, the tool may throw up Error 50. Here is the full error message verbatim: Deployment Image Servicing and Management tool Version: 10.0.19041.844 Error: 50 DISM does not support servicing\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"dism error 87 minint registry key","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/11\/dism-error-87-minint-registry.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/11\/dism-error-87-minint-registry.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/11\/dism-error-87-minint-registry.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/30783","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=30783"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/30783\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=30783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=30783"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=30783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}