Somehow, I got my PowershellISE with ISESteroids (Win 7 Pro 64) in a state where Get-ExceptionPolicy = ByPass, and I could do nothing that would change that.
Well, sort of...
I then ran:
So that tells me my change did not take effect. Which is evidenced when I ran this cmdlet:
So it is unrestricted. That certainly is not what I asked for: RemoteSigned.
BUT the registry says the ExecutionPolicy is RemoteSigned here: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell\ExecutionPolicy.
So the questions become:
Have you run "Get-ExecutionPolicy -List" as the error suggests?
Are you being impacted by a Group Policy that perhaps sets this? Or is there a profile script that's setting this each time the shell runs?
There are so many tons of documentation I guess I hoped I could pick of this aspect of PS quickly. Nope, gotta dig into. That is fine, because I would rather understand it more thoroughly than less thoroughly.
You must be logged in to reply to this topic.