Snowagent provides flexible options for excluding files and folders during inventory scans. The exp: expression rule enables you to apply exclusions regardless of their location on the machine by leveraging wildcards. This article shows how to configure these exclusions on Windows and case-sensitive operating systems like Linux and macOS.
Understanding exp: expression
The exp: prefix provides pattern-based exclusions. By using wildcards (*), file and folder names are excluded from scans regardless of their directory path.
Examples for Windows Systems
Windows uses backslashes (\) for paths.
- Exclude any folder named “razer” anywhere on the machine:
<Path>exp:*\razer\*</Path> - Exclude any file named “razer” anywhere on the machine:
<Path>exp:*\razer*</Path>
Examples for Linux and macOS Systems
Linux and macOS use forward slashes (/) and are case-sensitive. Use:
- Exclude any folder named “razer” anywhere on the machine:
<Path>exp:*/razer/*</Path> - Exclude any file named “razer” anywhere on the machine:
<Path>exp:*/razer*</Path>
On case-sensitive operating systems such as Linux or macOS, file and folder names like “razer” and “Razer” are considered distinct. Specifying exp:/razer excludes lowercase matches but does not exclude uppercase matches.
You can use a wildcard for the first character to capture case variations, but this may exclude more files than intended:
<Path>exp:*/ *azer*</Path>
Instead, you can add two lines for both variants.
For folders:
<Path>exp:*/razer/*</Path>
<Path>exp:*/Razer/*</Path>
For files:
<Path>exp:*/razer*</Path>
<Path>exp:*/Razer*</Path>
Why use exp: instead of absolute paths?
Absolute paths (such as C:\Program Files\razer\* or /usr/local/razer/*) only exclude items in the specified directory. If the same file or folder exists elsewhere, it will not be excluded. The exp: rule applies globally, ensuring comprehensive exclusions.
Best Practices
- Test exclusions in a controlled environment before wide deployment.
- Use specific patterns to avoid unnecessary exclusions.
- Document all exclusion rules for audits and troubleshooting.
The inventory scan excludes defined files and folders globally based on your pattern configuration.
Related Articles
Install Speedfolder: Configure include and Exclude Folders/Files 7Number of Views How to Include Files and Folders with an Installer at Build Time Using Manifest Files 4Number of Views Excluding Files and Folders from Datastore Scans 6Number of Views Empty Folders Not Created Using Dynamic File Linking 13Number of Views PowerShell script to monitor the process and folders used by the cloud metering process 75Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago