Access to the registry key for PowerShel' is denied.

Anonymous
2011-04-18T19:01:27+00:00

When logged in as admin, still receive following error when attempting to enable powershell on Windows 7 Home Premium..  Request solution to following error: 

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

At line:1 char:20

  • set-ExecutionPolicy <<<<  unrestricted
  • CategoryInfo : NotSpecified: (:) [Set-ExecutionPolicy], UnauthorizedAccessException
  • FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.PowerShell.Commands.SetExecutionPolicyCommand
Windows for home | Previous Windows versions | Apps

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Anonymous
    2011-04-18T20:02:32+00:00

    Hi,

    Did you install PowerShell in that ADMIN Account? If not re-install in it.

    How to Open Windows PowerShell in Windows 7

    http://www.sevenforums.com/tutorials/27758-windows-powershell.html

    For Windows 7 - PowerShell check in with the TechNet Forums

    TechNet Forums

    http://social.technet.microsoft.com/Forums/en-us/categories/

    TechNet - Windows PowerShell Forum

    http://social.technet.microsoft.com/Forums/en-us/winserverpowershell/threads

    Windows PowerShell - MSDN has development help

    http://msdn.microsoft.com/en-us/library/aa973757(VS.85).aspx

    Scripting with Windows PowerShell & Download Link

    http://technet.microsoft.com/en-us/scriptcenter/powershell.aspx

    How Do I: Windows PowerShell 2.0?

    http://technet.microsoft.com/en-us/windows/dd320288.aspx

    Windows PowerShell

    http://en.wikipedia.org/wiki/Windows\_PowerShell

    Windows Management Framework (Windows PowerShell 2.0, WinRM 2.0, and BITS 4.0)http://support.microsoft.com/kb/968929

    Hope this helps.

    3 people found this answer helpful.
    0 comments No comments

12 additional answers

Sort by: Most helpful
  1. Anonymous
    2012-05-16T14:06:01+00:00

    As an alternative for re-installing PowerShell, you may try to change registry privileges

    * Run: regedt32

    * Goto HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell

    * Right-Click > Permissions

    * Select, and add your account, grant it "Full Control" privileges

    It helped me out, being "alternative" admin, on my machine, which was prepped by an operations admin

    21 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2013-01-31T12:44:07+00:00

    Worked for me as well :)

    0 comments No comments
  3. Anonymous
    2013-06-17T10:13:43+00:00

    Probably the best solution if you are running the system in a closed network.

    Worked for me ... Thanks!

    0 comments No comments
  4. Anonymous
    2013-07-09T14:10:11+00:00

    The Regedit privileges changes worked for me.

    0 comments No comments