Idera nSoftware Compellent

Changing Execution Policy without Admin Rights

In PowerShell v.2, a number of parameters have been added to Set-ExecutionPolicy, which allows you to change this setting without Admin privileges, unless an administrator has restricted this:

This line will change the execution policy only for the current session:

Set-ExecutionPolicy -Scope Process RemoteSigned -force

This will change your personal execution policy permanently:

Set-ExecutionPolicy -Scope CurrentUser RemoteSigned -force

Twitter This Tip! ReTweet this Tip!


Posted Feb 04 2010, 08:00 AM by ps1

Comments

Episode 101 – Matthew Giles from Connect-SMART « PowerScripting Podcast wrote Episode 101 – Matthew Giles from Connect-SMART « PowerScripting Podcast
on 02-07-2010 9:37 PM

Pingback from  Episode 101 – Matthew Giles from Connect-SMART «  PowerScripting Podcast

1 oz silver wrote re: Changing Execution Policy without Admin Rights
on 04-25-2010 11:43 PM

Hi,

So theres no chance of changing the settings using this code if an administrator has restricted it?

Richard Giles wrote re: Changing Execution Policy without Admin Rights
on 04-26-2010 10:32 AM

Microsoft's PowerShell security model dictates that setting the execution policy requires administrator permissions.

Copyright 2010 PowerShell.com. All rights reserved.