0
I was using the package manager console in Visual Studio 2015, when opening the powershell appeared a message if I wanted to run it in an unreliable source file, I clicked yes on showed this message 3 more times, I clicked yes three times and then appeared this other message.
Translating into English the short message is this:
The shell cannot be started, a failure occurred during its startup: Errors occurred while loading Microsoft.Powershell.Core format data files, C: windows... Certificate.format.ps1.xml, the file was ignored due to the following validation exception: C file: windows... Certificate.format.ps1.xml cannot be loaded by software restriction policies like those created with the group policy
How to fix this problem?
I had already performed this executionpolicy operation before posting here on stackoverflow and kept giving the same error message on powershel. I tried to do more things by searching on google, such as resetting the group policies of windows10 through commands at the prompt, uninstalled the visual studio but without success. I do not know if there is a way to restore the powershell in window10, which come in version 5.0, I did not find anything, nor in gringos forums, there are only ways to uninstall in windows 7 and in previous versions, I did not find anything from windows 10.
– Leonardo Gustavo Maran
I already solved the problem here, I upgraded my Windows10 to its latest version and the powershell is back to normal.
– Leonardo Gustavo Maran