script to allow .net app to run on network

  • Thread starter Thread starter bozard
  • Start date Start date
B

bozard

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
 
Sorry, but this newsgroup is for questions about about security in Access,
the database product that's part of Office Professional.

Your question would be best reposted to a newsgroup relevant to whatever
operating system you're using.
 
Back
Top