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

Prompted to RUN ONCE or SUSPEND when Unrestricted is already set???

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 01-28-2008   #1 (permalink)
Susan P.
Guest


 

Prompted to RUN ONCE or SUSPEND when Unrestricted is already set???

Hi Group,

I have an unblocked PS script, all NTFS alternative data streams removed,
execution policy set to "unrestricted", NTFS full control, PS running
elevated, and when I run the script it works without prompting. I copy that
script to the C:\Temp folder, or any other folder, and I get prompted with
"Run Once, Suspend, ..." even though nothing has changed, e.g., blocking,
execution policy, etc. Strangely, the original script is in a subdirectory
of C:\Temp and it works without prompting, but moving it up in the directory
hierarchy causes the prompting and I can't get rid of it.

How can I get rid of the prompting with unblocked scripts and
executionpolicy already set to Unrestricted?

This, plus the issues with logon PS scripts and Group Policy execution of PS
scripts, is quickly pushing PS into the "not worth it anymore" category...

Thank you in advance for any help.

SP



My System SpecsSystem Spec
Old 01-28-2008   #2 (permalink)
Shay Levi
Guest


 

Re: Prompted to RUN ONCE or SUSPEND when Unrestricted is already set???



Are you using Vista?

-----
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com
Quote:

> Hi Group,
>
> I have an unblocked PS script, all NTFS alternative data streams
> removed, execution policy set to "unrestricted", NTFS full control, PS
> running elevated, and when I run the script it works without
> prompting. I copy that script to the C:\Temp folder, or any other
> folder, and I get prompted with "Run Once, Suspend, ..." even though
> nothing has changed, e.g., blocking, execution policy, etc.
> Strangely, the original script is in a subdirectory of C:\Temp and it
> works without prompting, but moving it up in the directory hierarchy
> causes the prompting and I can't get rid of it.
>
> How can I get rid of the prompting with unblocked scripts and
> executionpolicy already set to Unrestricted?
>
> This, plus the issues with logon PS scripts and Group Policy execution
> of PS scripts, is quickly pushing PS into the "not worth it anymore"
> category...
>
> Thank you in advance for any help.
>
> SP
>

My System SpecsSystem Spec
Old 01-28-2008   #3 (permalink)
Susan P.
Guest


 

Re: Prompted to RUN ONCE or SUSPEND when Unrestricted is already set???

> Are you using Vista?

Yes, 32-bit Ultimate version.


My System SpecsSystem Spec
Old 01-28-2008   #4 (permalink)
Shay Levi
Guest


 

Re: Prompted to RUN ONCE or SUSPEND when Unrestricted is already set???

I'm not working with Vista and don't have access to one right now, but I
can remember an issue that
users are not allowed to save files on the root drive(s). I may be wrong.

-----
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com
Quote:
Quote:

>> Are you using Vista?
>>
> Yes, 32-bit Ultimate version.
>

My System SpecsSystem Spec
Old 01-28-2008   #5 (permalink)
alexandair
Guest


 

Re: Prompted to RUN ONCE or SUSPEND when Unrestricted is alreadyset???

On Jan 28, 11:22*pm, "Susan P." <spane...@xxxxxx> wrote:
Quote:
Quote:

> > Are you using Vista?
>
> Yes, 32-bit Ultimate version.
Who put the original script in a subdirectory of C:\Temp. You manually
or some application?

-aleksandar
My System SpecsSystem Spec
Old 01-28-2008   #6 (permalink)
Joel (Jaykul) Bennett
Guest


 

Re: Prompted to RUN ONCE or SUSPEND when Unrestricted is alreadyset???

On Jan 28, 4:41 pm, "Susan P." <spane...@xxxxxx> wrote:
Quote:

> Hi Group,
>
> I have an unblocked PS script, all NTFS alternative data streams removed,
> execution policy set to "unrestricted", NTFS full control, PS running
> elevated, and when I run the script it works without prompting. I copy that
> script to the C:\Temp folder, or any other folder, and I get prompted with
> "Run Once, Suspend, ..." even though nothing has changed, e.g., blocking,
> execution policy, etc. Strangely, the original script is in a subdirectory
> of C:\Temp and it works without prompting, but moving it up in the directory
> hierarchy causes the prompting and I can't get rid of it.
That's a really strange thing ... I've been playing with this in Vista
and XP and I can't duplicate what you're describing. I mean, if I take
a script (regardless of whether it's mine or downloaded from the
internet) ... and put it in certain folders (eg: ...\Temporary
Internet Files\ and it's sub-folders ...) I get the Security Warning
prompt even though the file itself is not blocked ... is that what's
happening to you? I mean, when you say "any other folder" ... does
that include your own "my documents" folder or desktop or the C:\
root, or something like that??

You're not editing this in a temporary unzip location are you? If you
have content that's in a temp folder because it's really in a zip that
you downloaded from the internet -- then when files are extracted from
a blocked zip they are blocked -- that would probably include moving
it, depending on which tool you used and where you moved it too.
My System SpecsSystem Spec
Old 01-28-2008   #7 (permalink)
Susan P.
Guest


 

Re: Prompted to RUN ONCE or SUSPEND when Unrestricted is already set???

> Who put the original script in a subdirectory of C:\Temp. You manually
Quote:

> or some application?
I did, with Windows Explorer, then double-checked that it was still
unblocked.

Note that I originally created the script in a subdirectory of C:\temp, then
put a copy up into C:\temp and tried to run it there (but got prompted).



My System SpecsSystem Spec
Old 01-28-2008   #8 (permalink)
Susan P.
Guest


 

Re: Prompted to RUN ONCE or SUSPEND when Unrestricted is already set???

> I mean, when you say "any other folder" ... does
Quote:

> that include your own "my documents" folder or desktop or the C:\
> root, or something like that??
I get prompted when I put a copy into C:\temp and C:\workfiles, but I
haven't tried my local profile folders since I never use them. Note that
these are copies, not moves, if that makes a difference.
Quote:

> You're not editing this in a temporary unzip location are you?
Not in a zip.

Thanks


My System SpecsSystem Spec
Old 01-29-2008   #9 (permalink)
Joel (Jaykul) Bennett
Guest


 

Re: Prompted to RUN ONCE or SUSPEND when Unrestricted is alreadyset???

> I get prompted when I put a copy into C:\temp and C:\workfiles, but I
Quote:

> haven't tried my local profile folders since I never use them. Note that
> these are copies, not moves, if that makes a difference.
Can you, for the sake of testing, try creating another script in the
same location? I'm having trouble imagining what could be causing a
script to do that ... Try something like this, at the prompt (in that
same folder):

'write-host "Hello $args" -fore yellow' > test-helloworld.ps1
..\test-helloworld.ps1 Susan P

That should work, and should write "Hello Susan P" in yellow. f you
can't run test-helloworld.ps1 .. then it's the folder location that's
blocked (and I don't know how, really). If it does work, then try
copying your script this way...

get-content yourscript.ps1 | set-content newscript.ps1

If you can then run newscript.ps1 ... then somehow your OS is
persisting in blocking the file -- and again, I don't know how,
because the only thing I know of that would block it and cause the
"Security Warning" prompt is the alternate data stream "ZoneID", or
being in a location that is considered a "temporary internet files"
location.
My System SpecsSystem Spec
Old 01-29-2008   #10 (permalink)
Susan P.
Guest


 

Re: Prompted to RUN ONCE or SUSPEND when Unrestricted is already set???

> Can you, for the sake of testing, try creating another script in the
Quote:

> same location?
Got prompted. Double-checked that it was unblocked and that ExecutionPolicy
is still set to Unrestricted too.

Quote:

> because the only thing I know of that would block it and cause the
> "Security Warning" prompt is the alternate data stream "ZoneID", or
> being in a location that is considered a "temporary internet files"
> location.
Just to make sure, I again used Sysinternals' STREAMS.EXE tool to remove any
NTFS alternative data streams, no luck.

How is a location considered a "temporary Internet files" location? Is
there an IE option or a registry key for that?

Thank you, btw, for your help on this!


My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Not being prompted for encryption key 4hits Vista networking & sharing 6 08-13-2008 05:39 PM
Getting Prompted while installing. T. Ashley Vista account administration 1 08-07-2008 11:17 PM
Vista Guest Account Has Unrestricted Access to the Registry? musicmanrdu System Security 9 04-24-2008 10:55 PM
Bypassing Security Prompt in Unrestricted Mode greatbarrier86 PowerShell 7 08-14-2007 02:32 PM
Set-ExecutionPolicy Unrestricted Stefan Koell PowerShell 28 05-07-2007 09:05 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 51