{"id":76808,"date":"2024-10-18T22:23:14","date_gmt":"2024-10-18T16:53:14","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=76808"},"modified":"2024-10-18T22:23:52","modified_gmt":"2024-10-18T16:53:52","slug":"internal-powershell-error-80070002","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/internal-powershell-error-80070002\/","title":{"rendered":"[Fix] Internal Windows PowerShell error 80070002"},"content":{"rendered":"<p>When you open Windows Terminal (PowerShell), the following error may occur:<\/p>\n<pre class=\"err\">Internal Windows PowerShell error.  Loading managed Windows PowerShell failed with error 80070002.<\/pre>\n<p>If you run PowerShell.exe, the window may close abruptly.<!--more--><\/p>\n<div class=\"rp\"><strong>RELATED:<\/strong> <a href=\"https:\/\/www.winhelponline.com\/blog\/powershell-closes-machine-config-parser-error\/\">PowerShell Closes Immediately When Launched; Machine.Config Parser Error<\/a><\/div>\n<h2>Cause<\/h2>\n<p>This happens if the file &#8220;Microsoft.PowerShell.ConsoleHost.dll&#8221; is missing from the system. It&#8217;s supposed to be present in the following directory.<\/p>\n<pre>C:\\Windows\\Microsoft.NET\\assembly\\GAC_MSIL\\Microsoft.PowerShell.ConsoleHost\\v4.0_3.0.0.0__31bf3856ad364e35<\/pre>\n<p>In some cases, the above folder may be missing.<\/p>\n<h2>Resolution<\/h2>\n<p>You can download a fresh copy of the DLL &#8220;Microsoft.PowerShell.ConsoleHost.dll&#8221; from Microsoft. To learn how to download the appropriate version of a DLL file, see <a href=\"https:\/\/www.winhelponline.com\/blog\/download-missing-system-files-dll-exe-sys-from-microsoft-site\/\">How to Download Missing System files (dll, exe, sys) from Microsoft site<\/a><\/p>\n<p>After downloading it, copy it to the following folder:<\/p>\n<pre>C:\\Windows\\Microsoft.NET\\assembly\\GAC_MSIL\\Microsoft.PowerShell.ConsoleHost\\v4.0_3.0.0.0__31bf3856ad364e35<\/pre>\n<p><em>(Create the above folder path if it&#8217;s missing.)<\/em><\/p>\n<p>See if PowerShell starts correctly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you open Windows Terminal (PowerShell), the following error may occur: Internal Windows PowerShell error. Loading managed Windows PowerShell failed with error 80070002. If you run PowerShell.exe, the window may close abruptly.<\/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":[191,396],"class_list":["post-76808","post","type-post","status-publish","format-standard","hentry","category-windows-10","category-windows-11","tag-error-messages","tag-powershell"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":55748,"url":"https:\/\/www.winhelponline.com\/blog\/powershell-closes-machine-config-parser-error\/","url_meta":{"origin":76808,"position":0},"title":"PowerShell Closes Immediately When Launched; Machine.Config Parser Error","author":"Ramesh","date":"June 23, 2023","format":false,"excerpt":"When you run PowerShell.exe, the PowerShell window may open and close immediately before you can read the error message. Running PowerShell.exe from an existing Command Prompt window, or opening PowerShell via Windows Terminal may show the error message: The shell cannot be started. A failure occurred during initialization: The type\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":"machine.config fix file","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/machine.config_parser_error_fix_cmd.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/machine.config_parser_error_fix_cmd.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/machine.config_parser_error_fix_cmd.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/machine.config_parser_error_fix_cmd.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":76820,"url":"https:\/\/www.winhelponline.com\/blog\/powershell-error-v4-net-framework-not-installed\/","url_meta":{"origin":76808,"position":1},"title":"PowerShell: Version v4.0.30319 of the .NET Framework is not installed","author":"Ramesh","date":"October 19, 2024","format":false,"excerpt":"When you open Windows Terminal (PowerShell), the following error may occur: Version v4.0.30319 of the .NET Framework is not installed and it is required to run version 3 of Windows PowerShell. If you run PowerShell.exe, the window may close immediately. Running the .NET Framework Repair tool or removing and reinstalling\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":".net installroot fix - powershell closes","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/10\/installroot_registry_fix.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/10\/installroot_registry_fix.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/10\/installroot_registry_fix.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/10\/installroot_registry_fix.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":78009,"url":"https:\/\/www.winhelponline.com\/blog\/0xc0000142-cmd-powershell-sfc-dism\/","url_meta":{"origin":76808,"position":2},"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":4855,"url":"https:\/\/www.winhelponline.com\/blog\/restore-windows-store-windows-10-uninstall-with-powershell\/","url_meta":{"origin":76808,"position":3},"title":"Restore Microsoft Store in Windows 10\/11 after uninstalling it with PowerShell","author":"Ramesh","date":"December 21, 2016","format":false,"excerpt":"Windows 10 and 11 come with many built-in Store apps that may not be useful to you. As you may have known, PowerShell allows you to uninstall individual apps or all apps using a single command. If you had used the following command to uninstall all bundled apps in Windows\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":"Microsoft Store app installer from AppStore.","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/store-installer-appstore.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/store-installer-appstore.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/store-installer-appstore.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/store-installer-appstore.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":26655,"url":"https:\/\/www.winhelponline.com\/blog\/need-new-app-open-windows-defender-link\/","url_meta":{"origin":76808,"position":4},"title":"You&#8217;ll need a new app to open this windowsdefender link","author":"Ramesh","date":"May 9, 2022","format":false,"excerpt":"After installing the Windows 11 Feature Update, you may notice that the Windows Defender Security settings page can't be opened. Nothing may happen when you open the Windows Security dashboard, or the following error may occur when you do so: You'll need a new app to open this windowsdefender link\u2026","rel":"","context":"In &quot;Windows 11&quot;","block_context":{"text":"Windows 11","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-11\/"},"img":{"alt_text":"get an app to open windows defender link","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/05\/get-an-app-defender-link.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":17795,"url":"https:\/\/www.winhelponline.com\/blog\/windows-store-error-0x800706d9\/","url_meta":{"origin":76808,"position":5},"title":"Error 0x800706D9 Installing or Updating Store Apps","author":"Ramesh","date":"August 8, 2020","format":false,"excerpt":"You may be unable to download new apps or update existing apps using the Microsoft Store due to error 0x800706D9 -- Something unexpected happened. Error code 0x800706D9 translates to \"There are no more endpoints available from the endpoint mapper\", which doesn't make much sense for the end-user. Also, the same\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":"store apps error 0x800706D9","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2020\/08\/800706b9-store-apps-error.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2020\/08\/800706b9-store-apps-error.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2020\/08\/800706b9-store-apps-error.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2020\/08\/800706b9-store-apps-error.jpg?resize=700%2C400&ssl=1 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/76808","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=76808"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/76808\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=76808"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=76808"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=76808"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}