The FSLogix Rules page (sidebar → FSLogix Rules) lets you build FSLogix App Masking rule
sets and export them as Rule Editor-compatible .fxr / .fxa file pairs for deployment to
Azure Virtual Desktop (AVD) session hosts. This feature is Pro edition only; the FSLogix Rules
page is locked in the free edition.
What is App Masking? #
FSLogix App Masking is a feature of FSLogix Apps (Microsoft’s profile and app masking solution for
Windows Enterprise multi-session and AVD) that lets you redirect, hide, or modify registry keys and
files on a per-user or per-group basis. Common use cases include:
- Hiding installers or config files from users who shouldn’t modify them
- Redirecting application data to alternative locations (isolation, shared storage)
- Setting registry values dynamically (license keys, feature toggles)
Rules are machine-wide (stored on the host); who they apply to is decided entirely by assignments
(Everyone, users, groups, processes, networks, etc.). You deploy the rules once; assignments
control visibility and behavior per identity.
Creating a Rule Set #
Click New Rule Set on the FSLogix Rules page to start. You have three ways to create rules:
1. New Rule Set #
Creates a blank rule set named "New Rule Set" with a default assignment (Everyone / Doesn’t apply).
You then add rules in the editor drawer. Good for starting from scratch.
2. New from Installed App #
Click New from installed app… to open a picker showing all installed applications on your
machine.
-
Select an application (e.g., 7-Zip, Microsoft Office)
-
The wizard generates a starter rule set with:
- Install folder hiding — the application’s installation directory (if discoverable)
- Uninstall registry key hiding — the app’s uninstall registry entry
- Start-Menu shortcut hiding — any Start-Menu folder/link matching the app name
All rules are commented for clarity (e.g., "Install folder", "Uninstall key").
-
The draft opens in the editor for review and extension (no saving until you confirm).
Note: This is starter-level only — Rule Editor’s deep COM/CLSID and file-association scanning
is not included. Review the generated rules and add custom rules as needed before use.
3. Import Existing .fxr/.fxa #
Click Import… to upload existing rule files.
- Select one or both files (
.fxrand/or.fxa) - The wizard parses them and validates format; unsupported rules (legacy Java, retired app-container)
are skipped with warnings - The parsed draft opens in the editor for review and export
Both .fxr-only and .fxa-only imports are supported (a rules-only draft carries validation
errors until assignments are added, and vice versa).
The Rule Editor #
Open any rule set → Edit button or the card itself to open the editor drawer with three tabs:
Rules, Assignments, Preview.
Rules Tab #
Shows a table of existing rules with columns: action (Hide / Redirect / Set), item type (Folder /
File / Registry key / Registry value / Font / Printer), comment, source path, and a delete button.
To add a rule:
- Action — Select from: Hide / Redirect / Set registry value
- Item type — Select the object being masked:
- Folder or registry key (for Hide, Redirect)
- File or registry value (for Hide, Redirect, Set)
- Font (Hide only)
- Printer (Hide only)
- Source path — The file system path or registry path being masked. Examples:
- File:
C:\Program Files\MyApp\config.inior%ProgramFilesFolder64%\MyApp\config.ini - Registry key:
HKLM\SOFTWARE\Contoso\App - Registry value:
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComputerNameFormat - Wildcards:
*matches one whole path segment only, e.g.C:\Users\*\AppData\...(notC:\App*\) - Insert macro dropdown offers common FSLogix path macros (
%ProgramFilesFolder64%,
%CommonStartMenuFolder%,%LocalAppDataFolder%, etc.) and hive prefixes
- File:
- For Redirect:
- Destination path — Where to redirect the source (e.g.,
D:\AppData\MyApp) - Copy original first (checkbox) — For folders/keys only; if checked, the original is copied
to the destination before the redirect takes effect
- Destination path — Where to redirect the source (e.g.,
- For Set registry value:
- Value path — Parent registry key + value name, e.g.
HKLM\SOFTWARE\Contoso\Settings\License - Value type — String / ExpandableString / DWord / QWord / MultiString
- Data — The value to set:
- Single-value types (String, DWord, QWord): one input field
- MultiString: a repeatable list of values (one per line)
- Value path — Parent registry key + value name, e.g.
- Comment (optional) — Describes the rule. Auto-populated sensibly (e.g., "Hide config.ini")
and emitted as a##<comment>line in the.fxrfile.
Bulk add (shortcut for many rules):
Paste multiple paths in a textarea (one per line) to create N hiding rules at once. This is
a common workflow — e.g., pasting 10 folder paths to hide → 10 rules created instantly.
Validation feedback:
Save attempts trigger validation (shown inline):
- Errors block save: empty source path, invalid MultiString, etc.
- Warnings are informational:
*in wrong place, hiding critical OS paths, etc.
Assignments Tab #
Controls who this rule set applies to and in what order. Assignments are evaluated top to
bottom; the last matching entry wins.
Key concept — the nobody-default:
A new rule set defaults to Everyone / Doesn't apply. This means the rule set applies to
nobody until you edit it. The editor shows a persistent warning: "This rule set currently
applies to nobody." You must add at least one Applies assignment or change Everyone to
Applies.
To add an assignment:
- Who/what — Select the entity:
- Everyone — All users / processes / sessions
- User — Specific username (e.g.,
alice; requires AD sync, not cloud-only Entra) - Group — Specific group SID (e.g.,
S-1-5-21-...orS-1-5-32-544for Administrators;
requires AD sync and DC line-of-sight) - Process — Executable name or path matching (e.g.,
explorer.exe,code.exe) - Network — IP address or subnet (e.g.,
192.168,10.0.0.5) - Computer — Computer name (e.g.,
SERVER01, with optional domain wildcards) - OU — Active Directory organizational unit (distinguished name)
- Environment variable —
VAR=value(only variables present at session creation)
- Applies / Doesn’t apply — Toggle whether the rule set applies or is exempted
- Contextual fields — Based on the entity:
- Groups require SID + optional display name + optional distinguished name
- Users show username + optional DN
- Processes show exe name + optional "include child processes" checkbox
- Others (Network, Computer, OU, EnvVar) show identity text only
Reordering:
Use the up/down arrows on each assignment row to reorder. Since evaluation is last-matching-wins,
order matters — place broader rules (Everyone) early and specific exemptions later.
Preset buttons (one-click common patterns):
- Apply to everyone — Adds
Everyone / Applies - Apply to group, exempt administrators — Adds three rows in order:
Everyone / Doesn't apply(fallback)Group / Applies(focused, empty SID for you to fill in)BUILTIN\Administrators (S-1-5-32-544) / Doesn't apply(exemption)
Important notes:
- AD sync required — User/group assignments require identities synced from Active Directory.
Microsoft Entra ID cloud-only accounts are not supported; session hosts need DC line-of-sight
to resolve SIDs. - SIDs for groups — Groups use SIDs (e.g.,
S-1-5-32-544), not display names. Your identity
provider or admin can provide these. - Ordering is critical — Later entries override earlier ones. A common pattern:
Everyone / Doesn't apply(broad fallback — nobody, by default)Marketing-Group / Applies(rule set applies to this group)Administrators / Doesn't apply(admins are exempt even if in Marketing-Group)
Preview Tab #
Shows live read-only .fxr and .fxa files with visible tabs (the tab-delimited structure is
visible so you can verify the format). Tabs toggle between the two files. A deployment hint is
displayed: "Copy these files to C:\Program Files\FSLogix\Apps\Rules on session hosts — FSLogix
compiles them immediately (no restart)."
The preview updates automatically when you edit rules or assignments.
Exporting & Deploying Rule Sets #
From the list page, select a rule set and click Download.
In the desktop app: Files are written to your Default Output Folder (Settings → General) or
Downloads fallback. You’ll see a toast with the folder path.
In a browser: Both .fxr and .fxa are downloaded as a ZIP file.
Deploying to AVD:
- Copy the
.fxrand.fxafiles toC:\Program Files\FSLogix\Apps\Ruleson each session host
(via golden image, Intune, Group Policy, or a PSADT package) - The FSLogix Apps service (
frxsvc) compiles them immediately intoCompiledRules(.fxc/.fxac) - No restart required — rules are active for new sessions
- To remove: delete the
.fxr+.fxapair
Renaming rule sets:
Renaming a rule set only affects future exports — previously saved files in your output folder
are not renamed or deleted. A rule set named "Chrome" exported to Chrome.fxr / Chrome.fxa, then
renamed to "Google Chrome" and exported again, produces new files Google_Chrome.fxr /
Google_Chrome.fxa while the old ones remain.
Limitations & Supported Configurations #
- Rule source paths — Literal paths (e.g.
C:\Program Files) or FSLogix macros (e.g.
%ProgramFilesFolder64%); macros are treated as opaque text - Registry paths — Use short hive prefixes (
HKLM\,HKCU\, notHKEY_LOCAL_MACHINE) - Wildcards —
*matches one complete path segment only (e.g.C:\Users\*\AppData\...OK;
C:\App*\not supported) - Destination paths — Redirects only; wildcards not supported
- Entra cloud-only accounts — Not supported; assignments require AD-synced identities with
DC line-of-sight - File format — Files are UTF-16 LE with CRLF line endings, byte-compatible with Microsoft’s
Rule Editor. Supported types: Hide, Redirect, Specify registry value, Printer hiding, Font
hiding. Unsupported (skipped on import): Java rules, app-container VHD rules. - Edition requirement — FSLogix Rules is a Pro edition feature only