: Environment Variables in Policy Rules
Focus
Focus

Environment Variables in Policy Rules

Table of Contents

Environment Variables in Policy Rules

In addition to wildcards, policy rules also support native environment variables, including user- and system-wide variables. Restriction rules also support the use of multiple environment variables as long as the environment variable does not expand to another environment variable. You can use many environment variables that are supported by the Windows OS but some environment variables, including this specific set of variables, are not supported:
  • %USERNAME% environment variable
  • Environment variables that are private
  • Recursive environment variables which include other environment variables in their definition (for example, %MySystemDrive% with a definition of %SystemDrive%)
The following topics describe supported environment variables in Windows and examples of the target values.