windows-itpro-docs/windows/device-security/applocker/merge-applocker-policies-manually.md
2017-04-19 14:12:47 -07:00

2.9 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
Merge AppLocker policies manually (Windows 10) This topic for IT professionals describes the steps to manually merge AppLocker policies to update the Group Policy Object (GPO). 3605f293-e5f2-481d-8efd-775f9f23c30f w10 deploy library security brianlic-msft

Merge AppLocker policies manually

Applies to

  • Windows 10

This topic for IT professionals describes the steps to manually merge AppLocker policies to update the Group Policy Object (GPO).

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 console. You must create one rule collection from two or more policies. For info 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:

Rule collection RuleCollection Type element
Executable rules Exe
Windows Installer rules Msi
Script rules Script
DLL rules Dll
Packaged apps and packaged app installers Appx
 
Rule enforcement is specified with the EnforcementMode element. The three enforcement modes in the XML correspond to the three enforcement modes in the AppLocker console, as shown in the following table:
XML enforcement mode Enforcement mode in Group Policy
NotConfigured Not configured (rules are enforced)
AuditOnly Audit only
Enabled Enforce rules
 
Each of the three condition types use specific elements. For XML examples of the different rule types, see Merge AppLocker policies manually.

Membership in the local Administrators group, or equivalent, is the minimum required to complete this procedure.

To merge two or more AppLocker policies

  1. Open an XML policy file in a text editor or XML editor, such as Notepad.
  2. Select the rule collection where you want to copy rules from.
  3. Select the rules that you want to add to another policy file, and then copy the text.
  4. Open the policy where you want to add the copied rules.
  5. Select and expand the rule collection where you want to add the rules.
  6. 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.
  7. Upload the policy to a reference computer to ensure that it is functioning properly within the GPO.