Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
I work on multiple machines and, very often, I need access to my tool sets on each machine that I work on. This is accomplished by sharing out my tools folder/drive and restrict full permissions to myself. There is a little wrinkle. Network shares by default only get LocalIntranet permissions and that may not be sufficient for some exes and managed assemblies. Fortunately there is the tool "caspol.exe" (normally located in the installed .NET framework folder, \Windows\Microsoft.NET\Framework\vN.N.NNNNN\CasPol.exe). caspol.exe can tell the client computer to give full trust to a network share which in turn enables the execution of exes and loading of assemblies directly from the network share.
Here is how I give full trust to a network share //MyDevBox/MyTools:
caspol.exe -m -ag 1.2 -url file://MyDevBox/MyTools/ * FullTrust
Giving full trust is also needed if you share development of Visual Studio projects/solutions across different machines. For example, I would develop code on my dev box and run test on multiple VPCs with the sources/binaries shared with full trust.
Hope this helps.
-Tan
Anonymous
June 05, 2008
PingBack from http://dogs-pets.info/dog-breeding/?p=986
Anonymous
June 05, 2008
Tan's post reminded me that I never got around to posting this silly batch script that I use. As you
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in