Export (0) Print
Expand All

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 the NewPset.xml file.

    caspol –user –chgpset NewPset.xml FilePset

See Also

Community Additions

© 2014 Microsoft