![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
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.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| 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 Specs![]() |
| | #2 (permalink) | ||||||||||||
| 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
| ||||||||||||
My System Specs![]() | |||||||||||||
| | #3 (permalink) |
| Guest | Re: Prompted to RUN ONCE or SUSPEND when Unrestricted is already set??? > Are you using Vista? Yes, 32-bit Ultimate version. |
My System Specs![]() |
| | #4 (permalink) | ||||||||||||||||||||||||
| 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
| ||||||||||||||||||||||||
My System Specs![]() | |||||||||||||||||||||||||
| | #5 (permalink) | ||||||||||||||||||||||||
| Guest | Re: Prompted to RUN ONCE or SUSPEND when Unrestricted is alreadyset??? On Jan 28, 11:22*pm, "Susan P." <spane...@xxxxxx> wrote:
or some application? -aleksandar | ||||||||||||||||||||||||
My System Specs![]() | |||||||||||||||||||||||||
| | #6 (permalink) | ||||||||||||
| Guest | Re: Prompted to RUN ONCE or SUSPEND when Unrestricted is alreadyset??? On Jan 28, 4:41 pm, "Susan P." <spane...@xxxxxx> wrote:
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 Specs![]() | |||||||||||||
| | #7 (permalink) | ||||||||||||
| 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
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 Specs![]() | |||||||||||||
| | #8 (permalink) | ||||||||||||||||||||||||
| Guest | Re: Prompted to RUN ONCE or SUSPEND when Unrestricted is already set??? > I mean, when you say "any other folder" ... does
haven't tried my local profile folders since I never use them. Note that these are copies, not moves, if that makes a difference.
Thanks | ||||||||||||||||||||||||
My System Specs![]() | |||||||||||||||||||||||||
| | #9 (permalink) | ||||||||||||
| 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
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 Specs![]() | |||||||||||||
| | #10 (permalink) | ||||||||||||||||||||||||
| 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
is still set to Unrestricted too.
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 Specs![]() | |||||||||||||||||||||||||
![]() |
| 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 |