« CardWhat on the rise, Barry Dorrans reading up on itSlickRun on 64 bit Vista »

64 and 32 bit PowerShell execution policies stored separately

10/04/08

Permalink 01:22:24 pm
Categories: General

64 and 32 bit PowerShell execution policies stored separately

Just stumbled upon this due to some confusion about the version of PowerShell I was running on my 64 bit Vista machine. I ran PowerShell from the start menu, using the context menu to bring it up as Administrator. Then I set the execution policy to RemoteSigned:

Set-ExecutionPolicy RemoteSigned

I ran PowerShell as a normal user (through SlickRun - brought up the 32 bit PowerShell without me noticing at first), tried to run a script and it failed. Get-ExecutionPolicy still showed Restricted. Wtf?

Turns out that the execution policies for 32 and 64 bit PowerShells are stored separately. I don't know, I can't figure out any value in this apart from the obvious "let's fuck with their minds" conspiracy idea. Probably something that wasn't really done on purpose, but still pretty important to know.

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
Please complete the song title below. Hint: enter 'h', 'e', 'a', 'v', 'e', 'n'
antispam test

Enter your email address:

Search

Oliver
MVP logo
March 2010
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31