diff --git a/windows/device-security/applocker/delete-an-applocker-rule.md b/windows/device-security/applocker/delete-an-applocker-rule.md index fa2e49bffb..8626baa6de 100644 --- a/windows/device-security/applocker/delete-an-applocker-rule.md +++ b/windows/device-security/applocker/delete-an-applocker-rule.md @@ -34,21 +34,25 @@ AppLocker, see [Administer AppLocker](administer-applocker.md#bkmk-using-snapins When this procedure is performed on the local device, the AppLocker policy takes effect immediately. **To clear AppLocker policies on a single system or remote systems** -Use the Set-AppLockerPolicy cmdlet with the -XMLPolicy parameter using a .XML file which contains the following contents: +Use the Set-AppLockerPolicy cmdlet with the -XMLPolicy parameter, using an .XML file that contains the following contents: - - + + -To use the Set-AppLockerPolicy cmdlet, we must first import the Applocker modules.  To do this: +To use the Set-AppLockerPolicy cmdlet, first import the Applocker modules: -PS C:\Users\Administrator> import-module AppLocker + ```powershell + 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: +We will create a file (for example, clear.xml), place it in the same directory where we are executing our cmdlet, and add the preceding XML contents. Then run the following command: -C:\Users\Administrator> Set-AppLockerPolicy -XMLPolicy .\clear.xml + ```powershell + 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.