Real Geek Forums  

Go Back   Real Geek Forums > Archives > Operating Systems > Windows XP > Windows XP Configuration & Management

Notices

Reply

Script wont run correctly

 

LinkBack Thread Tools Display Modes
Old 06-05-2008, 05:00 AM   #1 (permalink)
Default 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

bozard
Guest
 
Posts: n/a
Reply With Quote  
Old 06-05-2008, 07:17 AM   #2 (permalink)
Default Re: Script wont run correctly

bozard wrote:
Quote:
>
> 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


Klaus Jorgensen
Guest
 
Posts: n/a
Reply With Quote  
Old 06-05-2008, 01:52 PM   #3 (permalink)
Default Re: Script wont run correctly

Thank You, Thank you, thank you!

"Klaus Jorgensen" wrote:
Quote:
> bozard wrote:
Quote:
> >
> > 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
>
>
>
bozard
Guest
 
Posts: n/a
Reply With Quote  
Reply

Tags
None

Thread Tools
Display Modes

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

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


Similar Threads

Thread Thread Starter Forum Replies Last Post
Vista screensaver wont start computer wont sleep either jen not techy Windows Vista Performance & Maintenance 3 02-20-2007 12:56 AM
Game wont load correctly Jedi Windows XP Games 3 12-27-2005 04:24 PM
Media Player wont play CDs correctly Danksta420 Windows XP Music 1 08-08-2004 07:39 PM
ICS npt installing correctly franco Windows XP Network & Web 0 09-16-2003 07:39 PM
XP wont set cpu correctly Jon Windows XP Hardware 0 08-27-2003 12:28 PM


All times are GMT. The time now is 12:49 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright © 2005 - 2007 RealGeek.com. All rights reserved.

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 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90