Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

I can't run powershell in Windows 7

Posted on 2010-09-17
3
Medium Priority
?
645 Views
Last Modified: 2012-05-10
I have Windows 7 32 bit and when I run set-executionpolicy remotesigned it gives me the error I do not have rights to the registry.  I am in the administrators group.  This is my home machine, I am not on a domain.  How do I fix this so I can run scripts?  I powershell v2.
0
Comment
Question by:BrianSDG
3 Comments
 
LVL 21

Accepted Solution

by:
chapmanjw earned 2000 total points
ID: 33706595
You need to run PowerShell as administrator.  Right click, Run As Administrator.
0
 
LVL 23

Expert Comment

by:jeremyjared74
ID: 33706739
You can download this registry entry to fix all those annoying privileged errors. Once you download it, just double click it to install. You will then have a right click menu to take ownership. http://www.sevenforums.com/tutorials/1911-take-ownership-shortcut.html

Well, that won't help you on this error, but it is nice to have. You can follow the instructions on this EE Post: http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/Windows_7/A_2846-Use-the-Administrator-account-by-default-in-Vista.html
0
 
LVL 7

Expert Comment

by:thakurdinesh
ID: 33706744
set-ExecutionPolicy : Access to the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds
\Microsoft
.PowerShell' is denied.
At line:1 char:20
+ Set-ExecutionPolicy <<<<  RemoteSigned
    + CategoryInfo          : NotSpecified: (:) [Set-ExecutionPolicy], UnauthorizedAccessException
    + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.PowerShell.Commands.SetExecutionPolicyComma
   nd


How to fix this?
 
Right click on Powershell shortcut and choose 'Run as Administrator'

Also note that if you have a 64-bit OS you need to set the execution policy for both the 32-bit and 64-bit version of PowerShell.
Thanks
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Screencast - Getting to Know the Pipeline
Suggested Courses

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question