Merge AppLocker Policies Manually
Updated: May 2, 2012
Applies To: Windows 8.1, Windows Server 2012 R2, Windows Server 2012, Windows 8
This procedural topic describes the steps to manually merge AppLocker policies to update the Group Policy Object (GPO) in Windows Server 2012 and Windows 8.
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. For information about merging policies by using the cmdlet, see Merge AppLocker Policies by Using Set-ApplockerPolicy.
The AppLocker policy is saved in XML format, and the exported policy can be edited with any text or XML editor. Rule collections are specified within the RuleCollection Type element. The XML schema includes five attributes for the different rule collections, as shown in the following table.
RuleCollection Type element
Windows Installer rules
Packaged apps and packaged app installers
Rule enforcement is specified with the EnforcementMode element. The three enforcement modes in the XML correspond to the three enforcement modes in the AppLocker snap-in, as shown in the following table.
XML enforcement mode
Enforcement mode in Group Policy
Not configured (rules are enforced)
Each of the three condition types use specific elements. For XML examples of the different rule types, see Merge AppLocker Policies Manually in the Windows Server 2008 R2 Technical Library.
Membership in the local Administrators group, or equivalent, is the minimum required to complete this procedure.
To merge two or more AppLocker policies
Open an XML policy file in a text editor or XML editor, such as Notepad.
Select the rule collection where you want to copy rules from.
Select the rules that you want to add to another policy file, and then copy the text.
Open the policy where you want to add the copied rules.
Select and expand the rule collection where you want to add the rules.
At the bottom of the rule list for the collection, after the closing element, paste the rules that you copied from the first policy file. Verify that the opening and closing elements are intact, and then save the policy.
Upload the policy to a reference computer to ensure that it is functioning properly within the GPO.