Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

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 Windows Software Development Kit (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

Community Additions

© 2015 Microsoft