Access to the registry key for PowerShel' is denied.

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

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

How to Open Windows PowerShell in Windows 7

For Windows 7 - PowerShell check in with the TechNet Forums

TechNet Forums

TechNet - Windows PowerShell Forum

Windows PowerShell - MSDN has development help

Scripting with Windows PowerShell & Download Link

How Do I: Windows PowerShell 2.0?

Windows PowerShell

Windows Management Framework (Windows PowerShell 2.0, WinRM 2.0, and BITS 4.0)

Hope this helps.

Rob Brown - Microsoft MVP - Windows Insider MVP 2016 - current
Windows and Devices for IT 2009 - 2020

3 people were helped by this reply


Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.


Question Info

Last updated October 12, 2020 Views 72,608 Applies to: