How to: Change Permission Sets Using Caspol.exe
You can change the content of a particular permission set by importing a new XML file containing a permission set that replaces the original permission set. The only mutable permission set provided by the .NET Framework SDK is the Everything permission set. You can use the Code Access Security Policy tool (Caspol.exe) to replace the original permission set with the new set specified in the XML file.
To change a permission set
Type the following command at the command prompt:
caspol –chgpset pset_file pset_name.
The following command changes the
FilePset
permission set in the user policy to the state specified in theNewPset.xml
file.caspol –user –chgpset NewPset.xml FilePset
See Also
Tasks
How to: Import a Permission Set by Using an XML File
Reference
Code Access Security Policy Tool (Caspol.exe)
Concepts
Other Resources
Configuring Security Policy Using the Code Access Security Policy Tool (Caspol.exe)
Configuring Permission Sets Using Caspol.exe