Windows Defender real-time protection can inspect files as they are created and modified. During a large RAW+JPG capture, it may scan hundreds of arriving files at once.
Why add an exception
Camera Server writes incoming data directly into the dataset folder as it arrives. Defender may inspect files during the transfer or when they are closed. That scanning can increase disk and CPU use, delay file writes, and extend the transfer.
An exception for the active dataset parent folder prevents Defender real-time scanning of files under that path. It does not disable Defender everywhere and does not cover files written to other locations.
Desktop and OneDrive project folders
The project path in Process and the Process and automation dashboard tile shows an amber triangle icon when the Windows host reports that the project is on its Desktop or inside a configured OneDrive folder. Hover over the icon to read the warning. Desktop detection includes subfolders and uses Windows' actual Desktop location, including a Desktop redirected to OneDrive. Browser clients use the server's location, not the browser computer's Desktop.
Use a non-synced local folder for active captures and processing, then copy completed results to your backup destination. The warning does not block processing, move files, or establish that OneDrive or antivirus deleted anything. It does not inspect antivirus settings or detect other sync tools.
Add the exception
- Open Windows Security.
- Select Virus & threat protection, then Manage settings.
- Scroll to Exclusions and select Add or remove exclusions.
- Choose Add an exclusion, then Folder.
- Select the parent folder used for Camera Server datasets, for example
C:\Users\info\xangle\cameraserver\datasets. - Confirm that the exact active dataset and any Camera Server staging folder are beneath the excluded path.
Alternatively, run this command from an elevated PowerShell window:
Add-MpPreference -ExclusionPath "$env:USERPROFILE\xangle\cameraserver\datasets"
To check whether the user-profile-based path is configured:
$datasetPath = Join-Path $env:USERPROFILE 'xangle\cameraserver\datasets'
Get-MpPreference | Select-Object -ExpandProperty ExclusionPath | Where-Object { $_ -eq $datasetPath }
The check prints the path when the exclusion is present. No output means that exact path is not configured.
Folder exclusions reduce protection for that folder. Use them only for a trusted local capture directory, not for Downloads, shared folders, or a broad system path.
What our test demonstrated
We ran four matched 168-camera RAW+JPG captures, alternating the folder exception on and off. Every run produced 334 files and approximately 4.27 GB of data.
| Folder exception | Average total time | Average transfer time |
|---|---|---|
| Enabled, two runs | 30.800 s | 29.899 s |
| Disabled, two runs | 35.956 s | 34.895 s |
Without the exception, the transfer was approximately 5 seconds slower, or 14% slower, in both averages. The runs also showed higher CPU usage and substantially more aggregate write and queue pressure without the exception. Network throughput was nearly identical, so the difference was not explained by a faster network run.
These results indicate that real-time scanning affected the tested captures. The improvement can differ with scanner versions, other security products, storage hardware, file sizes, and background activity.
When to use it
Use a capture-folder exception when:
- the directory is a trusted, local SSD workspace;
- RAW or RAW+JPG transfers show high disk activity, write latency, or queueing;
- repeated tests show slower transfers with real-time scanning enabled;
- the folder is not synchronized by OneDrive, Google Drive, or another cloud service.
Do not use an exception as a substitute for investigating a failing SSD, a congested network, an unstable camera branch, or a third-party security product. Keep the exception limited to the capture workspace and review it if the dataset location changes.