How to Add Exclusions to Veeam Threat Hunter Scan
| KB ID: | 4688 |
| Product: | Veeam Backup & Replication | 12.3 | 12.3.1 | 12.3.2 | 13 | 13.1 |
| Published: | 2024-12-03 |
| Last Modified: | 2026-10-28 |
Purpose
Solution
To exclude specific files or folders from Veeam Threat Hunter scans, add a registry entry on your Veeam Backup Server:
Registry Path: HKLM\SOFTWARE\Veeam\Veeam Threat Hunter\
Value Name: VTHScanExclusions
Value Type: Multi-String (REG_MULTI_SZ)
Value Data: See guidelines below
How to Enter Exclusions:
- Enter one exclusion per line.
- You can exclude files, folders, or both.
- To exclude all files in a folder, use a backslash
\and a wildcard*at the end.
Example:Documents\*(excludes all files in any folder named Documents) - Wildcards (
*) can be used anywhere in the exclusion text—at the beginning, middle, or end.
Example:*\temp*(matches any folder or file that begins with "temp") - If you do not start your exclusion with a backslash or wildcard, one will be added automatically.
Example:Documents*is treated as*\Documents* - Drive letters (such as
C:\) are ignored and replaced with a wildcard, so exclusions apply to all drives.
Example:C:\Users\*\Documents\*is treated as*\Users\*\Documents\* - Exclusion entries must be at least three characters long.
How It Works:
When a file is scanned, the Veeam Threat Hunter checks the file’s absolute path against each exclusion entry. If any exclusion entry matches that file's path, the file is skipped from the scan. Think of each exclusion entry as a simple pattern-matching filter, like a simplified RegEx; if a file's absolute path matches any part, it is skipped.
Exclusion Examples:
*.foois treated as*\*.fooand matches any file with the extension.fooanywhere on any drive.foo.txtwould be treated as*\foo.txtand would match any file namedfoo.txtin any folder on any drive.foo*is treated as*\foo*and matches any file or folder that starts withfooin its name.C:\Users\Administrator\Documents\foo123.txtC:\Users\Administrator\Downloads\food\recipies\potpie.pdfD:\Security\footage\incidents\evidence.mp4
foo\*or\foo\*orC:\foo\*are all treated as*\foo\*and match any file path containing a folder namedfoo.C:\foo\*C:\Users\Administrator\AppData\Local\foo\*C:\Users\foo\*
\foo1*\foo2*\*is treated as*\foo1*\foo2*\*and matches any file with a folder path that contains a folder that starts withfoo2*and that folder is within a folder starting withfoo1*, no matter how deep in the path.
Example:E:\foo113\folder\subfolder\foo212\specimen.jpegC:\Users\foo1337\Videos\foo242\puppies.mp4
If this KB article did not resolve your issue or you need further assistance with Veeam software, please create a Veeam Support Case.
To submit feedback regarding this article, please click this link: Send Article Feedback
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.