Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Vista and script security/signing

Closed Thread
 
Thread Tools Display Modes
Old 08-03-2007   #1 (permalink)
P Cause
Guest


 

Vista and script security/signing

I followed the directions on setting up the Powershell GUI Help and my
profile won't execute. It seems that on Vista the default is that no scripts
run. OK, I kind of understand this. However, the other modes of operation
don't seem to match what I'd like to do and I certainly don't wan to have to
screw aroun d with signing simple utility scripts.

Is there a way to run restricted and then have a prompt to approve each
script execution. I *hate* the idea of "trusted" script providers. Even a
trusted provider cna be compromised and also I may not want to run a script,
even though it comes from a trusted provider. Is there a way to make a
scripot as "OK", on a script by script basis?
Old 08-03-2007   #2 (permalink)
RichS
Guest


 

RE: Vista and script security/signing

The settings for execution polict apply across all versions of PowerShell.

if your execution policy is set to Restricted - no scripts will run at all.

Best compromise for you is RemoteSigned I think
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"P Cause" wrote:

> I followed the directions on setting up the Powershell GUI Help and my
> profile won't execute. It seems that on Vista the default is that no scripts
> run. OK, I kind of understand this. However, the other modes of operation
> don't seem to match what I'd like to do and I certainly don't wan to have to
> screw aroun d with signing simple utility scripts.
>
> Is there a way to run restricted and then have a prompt to approve each
> script execution. I *hate* the idea of "trusted" script providers. Even a
> trusted provider cna be compromised and also I may not want to run a script,
> even though it comes from a trusted provider. Is there a way to make a
> scripot as "OK", on a script by script basis?

Old 08-05-2007   #3 (permalink)
Thomas Lee
Guest


 

Re: Vista and script security/signing

In message <00E75C61-DDB8-4659-8A27-A6E09A76C90C@microsoft.com>, P Cause
<PCause@discussions.microsoft.com> writes
>I followed the directions on setting up the Powershell GUI Help and my
>profile won't execute. It seems that on Vista the default is that no scripts
>run.


The default execution policy is "Restricted".

>OK, I kind of understand this.


It's MS's security paranoia. It's a PITA, but it makes sense when you
allow yourself to be as paranoid as MS probably has to be these days.
Paraphrasign the old chestnut: even if MS was not being paranoid, there
would still be hackers out to get them! :-)

But seriously - there is a good security story here. PowerShell, like
any scripting tool, can do great damage when used badly. The barriers MS
puts up help to ensure that PowerShell scripts only run when the admin
really, really makes the effort!

> However, the other modes of operation
>don't seem to match what I'd like to do and I certainly don't wan to have to
>screw aroun d with signing simple utility scripts.


You can continue to run restricted - that way no scripts run. The other
settings are:

unrestricted - all scripts run
remotesigned - all local scripts run, scripts you download from other
systems must be signed
allsigned - all scritps that are signed run, others don't.


>Is there a way to run restricted and then have a prompt to approve each
>script execution.


No.

> I *hate* the idea of "trusted" script providers. Even a
>trusted provider cna be compromised and also I may not want to run a script,
>even though it comes from a trusted provider. Is there a way to make a
>scripot as "OK", on a script by script basis?


Set your policy to unrestricted and only run scripts you know and trust.

Not sure if this is really the answer you want, but it's the best I can
find.

Thomas

--
Thomas Lee
doctordns@gmail.com
MVP - Admin Frameworks and Security
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
security permissions set by perl script Gary Ferland Vista security 0 1 Week Ago 05:00 PM
wireless script for vista wep open security sputnik Vista installation & setup 0 05-25-2008 11:28 AM
Powershell Security : encrypting a script dm_14 PowerShell 14 05-11-2007 02:17 PM
Signing a script Lothar PowerShell 2 12-14-2006 04:49 PM
Error when signing a PowerShell script Mike PowerShell 7 12-05-2006 11:30 AM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50