Running a .NET exe accross a Network (Repost)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I was told that there is a program called caspol.exe which allows you to change the
trust levels so that users from one PC can run an exe situated on another (networked)

However I am unclear as to how I can set this u

Essentially I have an exe called Test.exe - how do I use the Caspol.exe program to
allow an other user(s) to run it ? e.g. caspol -en

Thank
Gerr
 
HI ,
Here are some options for you

When you run a program of a network share, you will need to give full
trust permission to the network share by modifying the security setting.
You can do it using the following steps on the client machine

1.Open the Microsoft .NET Framework Configuration from
Administrative Tools.

2. Expand Runtime Security Policy->Machine->Code Groups.

3. Right-Click on All_Code and select new.

4. Choose "Create a new code group", and give it a relevant name such as the
name of the applications share then select Next.

5. On the next dialog choose URL from the drop-down list

6. In the URL dialog put the path to the share in this exact format
"file:////\\computername\sharename\*" where computername is the name of
the
computer hosting the remote share, and sharename is the name of the
share.

7. Click Next, and on the next page choose "Use an existing permission set,
and
choose Fulltrust from the drop-down list.

8. Click Next and then Finish.

B/ Use Caspol with the following syntax in a .NET command prompt

Caspol -machine -addgroup 1 -url "file:////\\computername\share\*" FullTrust


But you would have to do this from every machine. If you want the new
security policy to take effect from a single point, then you would have to
do the following

1. Configure the desired security policy on a machine (i.e. change the
trust for
the intranet zone, grant full trust to a specific assembly, etc. see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpcons
ecuritypolicybestpractices.asp for .NET framework security best practices.

2. Open the .NET Framework Configuration Wizard, select "Runtime Security
Policy"
3. Run the "Create Deployment Package" wizard, select the security policy
you
would like to package, and create the package.
4. Deploy the msi package to the targeted machines via ACTIVE DIRECTORY
(group
policies), startup scripts, or by placing the msi package on a network
share for
users to run.

5. Once the msi package has been installed users should be able to use the
updated
security policy.



Anand Balasubramanian
Microsoft, Visual Basic .NET

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only. Thanks
 
Back
Top