I have Windows 7, and I want to run PowerShell as an administrator. I found it in the Start Menu, right clicked it and selected Run as administrator, but I get the following:

Windows Explorer has stopped working

Even if I I try to open PowerShell > Windows PowerShell Help, I have the same error. I only can start PowerShell as a regular user, but this is useless because I can't run the following command:

Set-ExecutionPolicy RemoteSigned
(ExecutionPolicy : Access to the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft .PowerShell' is denied.)

Any ideas why I can't start PowerShell with admin rights?

link|improve this question
Just to confirm: You are an administrator on the local computer? – KCotreau Jul 19 '11 at 15:19
feedback

1 Answer

To be honest I'm not sure what the issue is. What I would suggest trying though is going directly to the PowerShell exe and trying to run that as an administrator:

C:\Windows\System32\WindowsPowerShell\v1.0\Powershell.exe

Failing that, I would run regedit as an administrator and change the registry key manually:

C:\Windows\System32\regedit.exe
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.