Here’s a PowerShell trap that needs better publicity - if you have both x64 and x86 versions of PowerShell installed (say, as you would on Windows Server 2008 R2), their security policies are independent.
If you’ve opened one powershell window and changed your execution policy thusly:
Then that policy changes affects only that environment - doing this at the 32 bit PowerShell command prompt has no effect on running scripts with 64 bit PowerShell, and vice versa.
It’s possible to have loosened things for the x86 environment while the x64 environment is still locked tight (or vice versa).
Comments
blog comments powered by Disqus