windows-itpro-docs/windows/device-security/applocker/edit-an-applocker-policy.md
2017-04-19 14:12:47 -07:00

7.2 KiB

title, description, ms.assetid, ms.prod, ms.mktglfcycl, ms.sitesec, ms.pagetype, author
title description ms.assetid ms.prod ms.mktglfcycl ms.sitesec ms.pagetype author
Edit an AppLocker policy (Windows 10) This topic for IT professionals describes the steps required to modify an AppLocker policy. dbc72d1f-3fe0-46c2-aeeb-96621fce7637 w10 deploy library security brianlic-msft

Edit an AppLocker policy

Applies to

  • Windows 10

This topic for IT professionals describes the steps required to modify an AppLocker policy.

You can edit an AppLocker policy by adding, changing, or removing rules. However, you cannot create a new version of the policy by importing additional rules. To modify an AppLocker policy that is in production, you should use Group Policy management software that allows you to version Group Policy Objects (GPOs). If you have created multiple AppLocker policies and need to merge them to create one AppLocker policy, you can either manually merge the policies or use the Windows PowerShell cmdlets for AppLocker. You cannot automatically merge policies by using the AppLocker snap-in. You must create one rule collection from two or more policies. The AppLocker policy is saved in XML format, and the exported policy can be edited with any text or XML editor. For info about merging policies, see Merge AppLocker policies manually or Merge AppLocker policies by using Set-ApplockerPolicy.

There are two methods you can use to edit an AppLocker policy:

Editing an AppLocker policy by using Group Policy

The steps to edit an AppLocker policy distributed by Group Policy include the following:

Step 1: Use Group Policy management software to export the AppLocker policy from the GPO

AppLocker provides a feature to export and import AppLocker policies as an XML file. This allows you to modify an AppLocker policy outside your production environment. Because updating an AppLocker policy in a deployed GPO could have unintended consequences, you should first export the AppLocker policy to an XML file. For the procedure to do this, see Export an AppLocker policy from a GPO.

Step 2: Import the AppLocker policy into the AppLocker reference PC or the PC you use for policy maintenance

After exporting the AppLocker policy to an XML file, you should import the XML file onto a reference PC so that you can edit the policy. For the procedure to import an AppLocker policy, see Import an AppLocker policy from another computer.

Caution:  Importing a policy onto another PC will overwrite the existing policy on that PC.  

Step 3: Use AppLocker to modify and test the rule

AppLocker provides ways to modify, delete, or add rules to a policy by modifying the rules within the collection.

Step 4: Use AppLocker and Group Policy to import the AppLocker policy back into the GPO

For procedures to export the updated policy from the reference computer back into the GPO, see Export an AppLocker policy to an XML file and Import an AppLocker policy into a GPO.

Caution:  You should never edit an AppLocker rule collection while it is being enforced in Group Policy. Because AppLocker controls what files are allowed run, making changes to a live policy can create unexpected behavior. For info about testing policies, see Test and update an AppLocker policy.   Note:  If you are performing these steps by using Microsoft Advanced Group Policy Management (AGPM), check out the GPO before exporting the policy.  

Editing an AppLocker policy by using the Local Security Policy snap-in

The steps to edit an AppLocker policy distributed by using the Local Security Policy snap-in (secpol.msc) include the following tasks.

Step 1: Import the AppLocker policy

On the PC where you maintain policies, open the AppLocker snap-in from the Local Security Policy snap-in (secpol.msc). If you exported the AppLocker policy from another PC, use AppLocker to import it onto the PC.

After exporting the AppLocker policy to an XML file, you should import the XML file onto a reference PC so that you can edit the policy. For the procedure to import an AppLocker policy, see Import an AppLocker policy from another computer.

Caution:  Importing a policy onto another PC will overwrite the existing policy on that PC.  

Step 2: Identify and modify the rule to change, delete, or add

AppLocker provides ways to modify, delete, or add rules to a policy by modifying the rules within the collection.

Step 3: Test the effect of the policy

For steps to test an AppLocker policy, see Test and update an AppLocker policy.

Step 4: Export the policy to an XML file and propagate it to all targeted computers

For procedures to export the updated policy from the reference computer to targeted computers, see Export an AppLocker policy to an XML file and Import an AppLocker policy from another computer.

Additional resources