[Fix] Internal Windows PowerShell error 80070002

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.

Cause

This happens if the file “Microsoft.PowerShell.ConsoleHost.dll” is missing from the system. It’s supposed to be present in the following directory.

C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.PowerShell.ConsoleHost\v4.0_3.0.0.0__31bf3856ad364e35

In some cases, the above folder may be missing.

Resolution

You can download a fresh copy of the DLL “Microsoft.PowerShell.ConsoleHost.dll” from Microsoft. To learn how to download the appropriate version of a DLL file, see How to Download Missing System files (dll, exe, sys) from Microsoft site



After downloading it, copy it to the following folder:

C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.PowerShell.ConsoleHost\v4.0_3.0.0.0__31bf3856ad364e35

(Create the above folder path if it’s missing.)

See if PowerShell starts correctly.


One small request: If you liked this post, please share this?

One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
  • Pin it!
  • Share it to your favorite blog + Facebook, Reddit
  • Tweet it!
So thank you so much for your support. It won't take more than 10 seconds of your time. The share buttons are right below. :)

Ramesh Srinivasan is passionate about Microsoft technologies and he has been a consecutive ten-time recipient of the Microsoft Most Valuable Professional award in the Windows Shell/Desktop Experience category, from 2003 to 2012. He loves to troubleshoot and write about Windows. Ramesh founded Winhelponline.com in 2005.

Leave a Comment