I have a Windows 2008 R2 SP1 server with all current windows updates. I am attempting to run PowerShell but it gives the following error:
Internal Windows PowerShell error. Loading managed Windows PowerShell failed with error 80070002
It then promptly goes back to the cmd line.
I have run a sfc /scannow
and it has come back clean.
I have tried running powershell -noprofile
Uninstalling and reinstalling Windows Management Framework 4.0 (KB2819745) resolved the error.
I used this script to test all the .NET folders
Out of 236 folders, the only one that gave me error 80070002 was
You can repair PowerShell likes this