# File operation control policy

Canonical: https://www.nsecsoft.com/en/docs/ping64-data-security/dlp/file-tracing/file-operation-control/

Language: en-US

Updated: 2026-11-29T10:05:09.853681Z

File operation control restricts local file operations by path. It is configured separately from Flow Trace, which collects file activity clues. Enabling this policy does not enable tracing, and saving it does not prove that an endpoint has blocked an operation. The following uses Windows endpoints as an example; validate other platforms, applications and operation methods separately.

## Before configuration

-   Use an account with Data Loss Prevention policy-management permission. Confirm that pilot endpoints are enrolled and appropriately licensed.
-   Agree on the paths, operations and business impact with the responsible owners. Prepare non-sensitive test files, recoverable pilot endpoints and a rollback plan. Broad paths or restrictions can disrupt business; do not deploy them to all endpoints without testing.
-   To query file activity clues, separately configure the applicable Flow Trace policy. A blocked operation and an available record are different outcomes.

## Configure rules

When a new data loss prevention policy is created, this feature's switch is initially off. For an existing policy, check its saved state.

1.  Open **Policy** in **DLP**. Create or edit a pilot policy and check its name, target endpoints and effective time.
2.  Enable **File operation control**, select **Configure**, then **Add rule**. Configure at least one complete rule. Even if the page permits an empty rule list to be saved, that does not establish an effective restriction.
3.  Enter **Rule name** and **File path**. The path is required and must end in `*`; duplicate paths are not allowed in the same policy, regardless of letter case. For example, `C:\TestDocs\*` illustrates a pilot path; use and validate the actual endpoint path.
4.  Select at least one **Operation restrictions** option: **Read-only**, **Copy denied**, **Delete denied**, **Move denied**, or **Rename denied**. Select according to business requirements and verify each restriction separately.
5.  Enable **Creation time check** if needed. When enabled, **Maximum creation time (seconds)** must be a positive integer. For example, `60` matches only files created less than 60 seconds ago. File creation time, endpoint clock and file-attribute availability can affect matching; this setting does not guarantee that every file is restricted.
6.  Check each rule's path, restrictions and order; confirm the settings dialog and save the entire policy. Rules can be reordered. For file operation control on Windows, overlapping paths use the first matching rule's restrictions rather than merging later rules. Validate overlapping scopes and order in the pilot.

**Overlapping rule example:** With creation-time checking disabled on both rules, set the first path to `C:\TestDocs\*` with rename prohibited, and the second to `C:\TestDocs\Reports*` with deletion prohibited. `C:\TestDocs\Reports-01.txt` matches both paths, but in this order only the first rule’s restrictions are used; the second rule’s deletion restriction is not added automatically. Reordering changes which rule matches first. If both restrictions are required, configure both in the applicable first rule and test both operations with a non-sensitive file. Other applicable controls may also affect the result.

**Maintain existing rules:** Select a rule in the settings window to edit it. To reuse a rule, create a copy from its action menu and check the copy’s name, conditions, and actions. Drag rules to change their order; review the order before saving because it affects rule selection. Deleting removes the target from the current settings immediately; deleting the rule being edited also discards its unsaved changes. Check the target and impact first. To discard changes to these settings, cancel and follow the prompt. After confirming the settings, save the entire policy and verify it on pilot endpoints.

## Verify and troubleshoot

1.  Wait for pilot endpoints to receive and apply the policy. Using controlled paths and files, test both matching and non-matching operations; if the creation-time check is enabled, also test files inside and outside the time condition.
2.  Test copying, deletion, moving, renaming or read-only behavior against the selected restrictions and actual results. Validate each application and operation method; do not assume every operation will be blocked.
3.  If results differ from expectations, check licensing, policy scope and effective time, endpoint state, rule order, path, creation time and selected operations, then check other applicable policies. A successful save does not prove endpoint enforcement.
4.  If business is affected, adjust or disable the applicable rule under the organization's process and verify recovery on the pilot endpoint. Do not assume all endpoints recover immediately after saving in the console.

-   [File activity tracing policy](https://www.nsecsoft.com/en/docs/ping64-data-security/dlp/file-tracing/flow-tracing-policy/)
