When I start PowerShell, it launches and the the window it opens in closes immediately.
I tried taking a screenshot and it says there's a registry error:
Reading the value of registry key SOFTWARE\Microsoft\PowerShell\3\PowerShellEngi ne\PowerShellVersion causes the following Win32 error: The system cannot find the file specified.
Why is this happening?
I'm running Windows 8.1.
If anyone else is having this issue... I tried everything on this forum as well as Microsoft's.
Ended up being an issue with my ISE profile loading $moduleBrowser
that kept crashing ISE after startup [Microsoft.PowerShellISE_profile.ps1]
.
Try launching ISE with no profile using powershell_ise.exe -noprofile
. Then, open your PowerShellISE_profile.ps1
. Comment it out, save it, close ISE.
Then try re-opening ISE, load your "commented-out" PowerShellISE_profile.ps1
, step through your profile to see what is causing the failure.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With