[GiM logo] gim.org.pl is down || odświeżony jogger (v.0.4) GiMa

As I've mentioned a while ago, I try to use powershell (1.0) on daily basis.

Recently I had strange problem regarding Execution Policy.

I've started powershell as admin, executed Set-ExecutionPolicy RemoteSigned. Then I've started powershell under console2 as a normal user.
To my suprise running Get-ExecutionPolicy returned Restricted

First explanation, solution below: I'm running 32bit version of Console2 on x64 version of vista. Since console2 starts powershell, it's also treated* as a 32bit application, so requests to HKLM\Software\ because of WOW64 goes to HKLM\Software\Wow6432Node.
These are totally independent registry keys, so when I've started powershell as Admin, changing execution-policy, changed only the first key (since powershell.exe is a 64bit application).
*Edit: Of course under console2, 32bit version of powershell is also started due to WOW64.

Solution is pretty simple, start Console2 as Admin, and then change execution policy.
Hope that helps anybody ;)

catz: [kom.puterowe] [micr.osoft] [Techblog]
dnia piątek, 19 luty 2010, 104133 by Michał 'GiM' Spadliński

Komentarze:

Proszę wpisy pisane po angielsku komentować również w tym języku.

You made my day!
Thanks,
Stefan

dnia środa, 10 marzec 2010, 174659 by Great

..tożsamość..:
..meritum..:
..lokum..:
Wpisz kod:code