--- title: Understanding the path rule condition in AppLocker (Windows 10) description: This topic explains the AppLocker path rule condition, the advantages and disadvantages, and how it is applied. ms.assetid: 3fa54ded-4466-4f72-bea4-2612031cad43 ms.prod: W10 ms.mktglfcycl: deploy ms.sitesec: library author: brianlic-msft --- # Understanding the path rule condition in AppLocker **Applies to** - Windows 10 This topic explains the AppLocker path rule condition, the advantages and disadvantages, and how it is applied. The path condition identifies an application by its location in the file system of the computer or on the network. When creating a rule that uses a deny action, path conditions are less secure than publisher and file hash conditions for preventing access to a file because a user could easily copy the file to a different location than the location specified in the rule. Because path rules specify locations within the file system, you should ensure that there are no subdirectories that are writable by non-administrators. For example, if you create a path rule for C:\\ with the allow action, any file under that location will be allowed to run, including within users' profiles. The following table describes the advantages and disadvantages of the path condition.
Path condition advantages | Path condition disadvantages |
---|---|
|
|
Windows directory or drive | AppLocker path variable | Windows environment variable |
---|---|---|
Windows |
%WINDIR% |
%SystemRoot% |
System32 |
%SYSTEM32% |
%SystemDirectory% |
Windows installation directory |
%OSDRIVE% |
%SystemDrive% |
Program Files |
%PROGRAMFILES% |
%ProgramFiles% and %ProgramFiles(x86)% |
Removable media (for example, CD or DVD) |
%REMOVABLE% |
|
Removable storage device (for example, USB flash drive) |
%HOT% |