Commit Graph

6 Commits

Author SHA1 Message Date
b21f821649 updating localizationpriority metadata name 2017-07-27 10:43:50 -07:00
29ab6d569d fixed syntax 2017-07-11 12:02:21 -07:00
cd812d03bb copyedits 2017-07-11 11:35:40 -07:00
66763a225b Document how to clear Applocker rules on an individual system and remote systems
In order to clear AppLocker policies from a machine you must use the Set-AppLockerPolicy cmdlet with the -XMLPolicy parameter using a .XML file which contains the following contents:

<AppLockerPolicy Version="1">
  <RuleCollection Type="Exe" EnforcementMode="NotConfigured" />
  <RuleCollection Type="Msi" EnforcementMode="NotConfigured" />
  <RuleCollection Type="Script" EnforcementMode="NotConfigured" />
  <RuleCollection Type="Dll" EnforcementMode="NotConfigured" />
</AppLockerPolicy>

To use the Set-AppLockerPolicy cmdlet, we must first import the Applocker modules.  To do this:

PS C:\Users\Administrator> import-module AppLocker

We will create a file for example called clear.xml and place it in the same directory that we are executing our cmdlet.  And fill it with the XML Contents above.  Then you must execute using the following command:

C:\Users\Administrator> Set-AppLockerPolicy -XMLPolicy .\clear.xml

This will remove all AppLocker Policies on a machine and could be potentially scripted to use on multiple machines using remote execution tools with accounts with proper access.
2017-07-11 17:58:51 +05:30
55c67d84ac Update Link URL
Updated AppLocker PowerShell Command Reference Link
2017-06-30 10:11:09 +12:00
33c3fb2e74 New TOC for docs.microsoft.com 2017-04-19 14:12:47 -07:00