How to: Create Permission Sets 

Use the .NET Framework Configuration tool (Mscorcfg.msc) to create a permission set for a particular level and associate it with a new or existing code group.

To create a permission set using Mscorcfg.msc

  1. Run the .NET Framework Configuration tool (Mscorcfg.msc).

    1. In Control Panel, open Administrative Tools.

    2. Double-click Microsoft .NET Framework <version> Configuration.

    Alternatively, you can run the tool from a command prompt:

    • In the .NET Framework versions 1.0 and 1.1, type the following at the command prompt: %Systemroot%\Microsoft.NET\Framework\versionNumber\Mscorcfg.msc.

    • In the .NET Framework 2.0, start the SDK Command Prompt and type mscorcfg.msc.

  2. Expand the Runtime Security Policy node.

  3. Expand the node for the policy level you want to add a permission set to.

  4. Right-click Permission Sets and choose New.

  5. Give the permission set a name and, optionally, a description. Click Next.

  6. Select a permission from the Available Permissions list and click Add. The Permission Settings dialog box appears, which contains information about the selected permission. Enter the information needed for that permission and click OK.

    If you want to add a custom permission, click the Import button and browse to the XML file that contains information about the custom permission.

  7. Repeat step six until all the desired permissions are added to the permission set.

  8. When you are finished adding permissions, click Finish.

See Also

Community Additions