내보내기(0) 인쇄
모두 확장

Merge AppLocker Policies by Using Set-ApplockerPolicy

게시: 2012년 4월

업데이트 날짜: 2012년 5월

적용 대상: Windows 8, Windows Server 2012

This topic describes the steps to merge AppLocker policies by using Windows PowerShell in Windows Server 2012 and Windows 8.

The Set-AppLockerPolicy cmdlet sets the specified Group Policy Object (GPO) to contain the specified AppLocker policy. If no Lightweight Directory Access Protocol (LDAP) is specified, the local GPO is the default. When the Merge parameter is used, rules in the specified AppLocker policy will be merged with the AppLocker rules in the target GPO specified in the LDAP path. The merging of policies will remove rules with duplicate rule IDs, and the enforcement setting specified by the AppLocker policy in the target GPO will be preserved. If the Merge parameter is not specified, then the new policy will overwrite the existing policy.

For information about using Set-AppLockerPolicy, including syntax descriptions and parameters, see Set-AppLockerPolicy (http://go.microsoft.com/fwlink/?LinkId=169167).

For information about using Windows PowerShell for AppLocker, including how to import the AppLocker cmdlets into Windows PowerShell, see Use the AppLocker Windows PowerShell Cmdlets.

You can also manually merge AppLocker policies. For the procedure to do this, see Merge AppLocker Policies Manually.

  1. Open the PowerShell command window. For information about performing Windows PowerShell commands for AppLocker, see Use the AppLocker Windows PowerShell Cmdlets.

  2. At the command prompt, type C:\PS>Get-AppLockerPolicy -Local | Set-AppLockerPolicy -LDAP "LDAP: //<string>" -Merge where <string> specifies the LDAP path of the unique GPO.

예제

Gets the local AppLocker policy, and then merges the policy with the existing AppLocker policy in the GPO specified in the LDAP path.

C:\PS>Get-AppLockerPolicy -Local | Set-AppLockerPolicy -LDAP "LDAP://DC13.Contoso.com/CN={31B2F340-016D-11D2-945F-00C044FB984F9},CN=Policies,CN=System,DC=Contoso,DC=com" -Merge

이 정보가 도움이 되었습니까?
(1500자 남음)
의견을 주셔서 감사합니다.

커뮤니티 추가 항목

추가
표시:
© 2014 Microsoft