Zoomed Image

AppLocker Policy

Endpoint Management Guide

Protect a Computer

AppLocker Policy

Set AppLocker Policy sets the local AppLocker policy on the selected computers. AppLocker controls which programs, installers and scripts may run. The action starts in audit mode: Windows logs what the rules would block and blocks nothing.

Endpoints > Endpoint List > select the computers > Change > Security Policy > Set AppLocker Policy.

The same policy is sent when a baseline is enforced. See Assign a Security Baseline. A baseline with Lockdown set to Audit, Enforce or Strict sends the Lockdown policy in its place. See Lockdown.

Set AppLocker Policy dialog with DEVDC in Computer Names, Modes exe=audit;msi=audit;script=audit and Paths showing Required Value

The dialog

The dialog is titled Set AppLocker Policy.

Field What it does Default
Computers The computers to change The selected rows
Modes The mode for programs, installers and scripts All three in audit
Also Allow Extra folders everyone may run files from, separated by \|. End each with *. Optional. Empty

The default Modes value:

exe=audit;msi=audit;script=audit

Each of exe, msi and script takes one of three modes:

Mode What Windows does
audit Runs everything. Logs event 8003 for each file the rules would have blocked.
enforce Blocks files the rules do not allow
off Applies no rules of that type

An example Paths value: %OSDRIVE%\Tools\*|D:\Apps\*.

The rules

The policy uses Microsoft's default rule set plus your paths:

  • Everyone may run files in Program Files and the Windows folder.
  • Local Administrators may run anything.
  • Everyone may run files in each extra path.

The policy replaces the computer's local AppLocker policy.

Effect on the computer

  1. It saves the whole current local AppLocker policy, including an empty one.
  2. It sets the Application Identity service to start automatically, and starts it. AppLocker needs this service.
  3. It writes the new policy.
  4. It reads back the mode of each rule type. A match reports Verified. A mismatch reports Applied.

The phases are Sent, Applied and Verified.

After you click OK

The message reads "The AppLocker policy was sent to the selected endpoints - watch it in Endpoint Jobs". It asks "Do you want to follow it now?". Yes opens Activity.

Undo

Set AppLocker Policy can be undone. The Undo column in Activity > Jobs shows Inverse for the run. Undo puts back the saved policy exactly. A computer that had no policy goes back to no policy. See Run detail and undo.

The undo first checks that the computer still reads as the run left it. If the policy has changed since, the undo changes nothing and its run fails with "AppLocker restore refused".

Key points

  • Leave a computer in audit long enough to cover its normal work, for example a month-end. The 8003 events list what Enforce would block.
  • A program that runs from a user's profile folder is blocked under Enforce unless a path allows it.
  • Local Administrators keep the right to run anything, so an administrator can always run a repair tool.
  • To run only the programs your company approved, for administrators too, set the baseline's Lockdown to Strict. See Lockdown.