<< Back to Script Library
FSLogix – AppMasking – List Rules
Lists the FSLogix AppMasking Rules on the machine
Version: 2.2.3
Created: 2023-08-16
Modified: 2023-09-11
Creator: Trentent Tye
Downloads: 40
Tags: AppMasking fslogix
Created: 2023-08-16
Modified: 2023-09-11
Creator: Trentent Tye
Downloads: 40
Tags: AppMasking fslogix
The Script
Copy Script
Copied to clipboard
<#
.SYNOPSIS
Reports the FSLogix currently-loaded App Masking rules
.DESCRIPTION
Reports the FSLogix currently-loaded App Masking rules, implemented by calling 'frx.exe list-rules'
.NOTES
If no rules are defined, the script returns:
No rules
.CONTEXT
Session/Machine
.MODIFICATION_HISTORY
Created TTYE : 2023-08-16
AUTHOR: Trentent Tye
#>
$ProgramFiles =[Environment]::GetFolderPath([Environment+SpecialFolder]::ProgramFiles)
[string]$FSLogixRulePath = Join-Path -Path $ProgramFiles -ChildPath "FSLogix\Apps\Rules"
[string]$FRXPath = Join-Path -Path $ProgramFiles -ChildPath 'FSLogix\Apps\frx.exe'
& $FRXPath list-rules -verbose