Windows XP Community - XPHeads



Script wont run correctly

microsoft.public.windowsxp.configuration_manage


Reply
  #1 (permalink)  
Old 06-05-2008, 05:00 AM
bozard
 
Posts: n/a
Script wont run correctly
I'm trying to get a application to run from a file share on the network. I
can do so successfully only when I manually go through the steps.

If I log on as a local or domain administrator (or if the user is a local
admin) and run the script below, the application on the file share (remote
server) will run successfully all the time. As the script allows the file
share location to be trusted no matter what script is placed in that
location.

When the script is run as a admin in the command shell it asks for
confirmation. Yes/No
As soon as you type "Y" and press enter your home free for good...

But you cannot run this script as a regular user or the script won’t be
successful.

Since I need to run this script on a lot of PC's I want this to be in the
startup policy. Since it needs to be run as a admin I believe it needs to be
in the computer start up policy. Problem starts here!!!!

Since the script requires a response to be successful it always fails in the
startup scripts.

Could some please help me by getting this script to run without requiring a
"Y" response?

(When I do put a /y it still prompts for a response!)

Script as follows:

echo off
cd %systemroot%\Microsoft.NET\Framework\v1.1.4322
CasPol.exe -m -ag 1.2 -url file://Cola-wwtp-fs-01/Instructions/* FullTrust
/yes
exit

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-05-2008, 07:17 AM
Klaus Jorgensen
 
Posts: n/a
Re: Script wont run correctly
bozard wrote:
>
> Could some please help me by getting this script to run without requiring a
> "Y" response?
>
> echo off
> cd %systemroot%\Microsoft.NET\Framework\v1.1.4322
> CasPol.exe -m -ag 1.2 -url file://Cola-wwtp-fs-01/Instructions/* FullTrust
> /yes
> exit


Use "caspol -pp off" first to disable prompting.

See this url for details:
http://msdn.microsoft.com/en-us/libr...tz(VS.80).aspx


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-05-2008, 01:52 PM
bozard
 
Posts: n/a
Re: Script wont run correctly
Thank You, Thank you, thank you!

"Klaus Jorgensen" wrote:

> bozard wrote:
> >
> > Could some please help me by getting this script to run without requiring a
> > "Y" response?
> >
> > echo off
> > cd %systemroot%\Microsoft.NET\Framework\v1.1.4322
> > CasPol.exe -m -ag 1.2 -url file://Cola-wwtp-fs-01/Instructions/* FullTrust
> > /yes
> > exit

>
> Use "caspol -pp off" first to disable prompting.
>
> See this url for details:
> http://msdn.microsoft.com/en-us/libr...tz(VS.80).aspx
>
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:02 PM.








Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0

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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74