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!