Microsoft Purview | Data Loss Prevention | Information Protection Scanner | Windows Server | Data Security
Introduction
Many organizations still rely on on-premises file servers to store sensitive business information, including financial records, employee data, customer information, contracts, and intellectual property.
Microsoft Purview provides different technologies to protect this information, but two capabilities are frequently confused:
- Microsoft Purview DLP for On-premises repositories
- Microsoft Purview Endpoint DLP for Windows Server
Although both are part of Microsoft Purview Data Loss Prevention, they address different security requirements.
On-premises repositories DLP uses the Microsoft Purview Information Protection Scanner to discover sensitive files and enforce repository-level protective actions.
Windows Server Endpoint DLP uses device-based policies to monitor and restrict supported activities involving sensitive files on eligible Windows servers.
Understanding this distinction is essential when designing a Microsoft Purview architecture for hybrid environments.
In this article, we compare both technologies, explore their limitations, and demonstrate how they can be configured and combined in real-world deployment scenarios.
1. Understanding the Core Difference
Consider an organization with a Windows Server 2022 file server hosting the following shares:
\\FILESERVER01\Finance\\FILESERVER01\HR\\FILESERVER01\Legal\\FILESERVER01\Customers
The organization wants to achieve two objectives.
Scenario A: Protect sensitive information stored on the file server
The security team wants to:
- Discover documents containing personal information.
- Identify sensitive files stored in inappropriate locations.
- Remove excessive NTFS permissions.
- Quarantine sensitive documents.
- Apply sensitivity labels to supported files.
Recommended solution: Microsoft Purview Information Protection Scanner with On-premises repositories DLP.
Scenario B: Prevent sensitive file activities on the server
The security team wants to monitor or restrict supported operations involving previously classified files, such as copying them to removable storage.
Recommended solution: Microsoft Purview Endpoint DLP for Windows Server, subject to the documented server limitations.
The difference is straightforward:
On-premises DLP protects files in repositories. Endpoint DLP controls supported activities performed on devices.
2. Feature Comparison
| Capability | On-premises repositories DLP | Windows Server Endpoint DLP |
|---|---|---|
| Primary purpose | Protect stored files | Control supported file activities |
| Technology | MPIP Scanner | Endpoint DLP |
| DLP location | On-premises repositories | Devices |
| Scanner required | Yes | No |
| Defender onboarding required | No, not for scanner DLP | Yes |
| Detect Sensitive Information Types | Yes | Limited by server classification restrictions |
| Apply sensitivity labels | Through scanner labeling | Not its primary function |
| Modify NTFS permissions | Yes | No equivalent repository action |
| Quarantine sensitive files | Yes | No equivalent repository action |
| Restrict supported USB copying | No | Yes |
| Activity Explorer integration | Yes | Yes |
| Typical deployment | File shares and supported SharePoint Server repositories | Supported Windows servers |
These technologies are complementary rather than interchangeable.
3. On-Premises Repositories DLP Architecture
Microsoft Purview On-premises repositories DLP relies on the Microsoft Purview Information Protection Scanner.
The scanner evaluates files in configured repositories and can enforce DLP policies when matching content is detected.
Architecture
Microsoft Purview | | Sensitivity labels | DLP policies vInformation Protection Scanner | | Content scan job vOn-premises repositories | +-- Finance +-- HR +-- Legal | vContent inspection | +-- Sensitive Information Types +-- Sensitivity labels +-- File extensions +-- Office document properties | vDLP enforcement | +-- Restrict access +-- Remove broad permissions +-- Inherit parent permissions +-- Quarantine files
Supported detection conditions
Microsoft documents four principal detection categories:
- Sensitive Information Types
- Sensitivity labels
- File extensions
- Custom document properties in Office files
The scanner can identify sensitive information using built-in or custom Sensitive Information Types.
For example, a policy can detect documents containing payment card information, national identifiers, or other configured sensitive data.
4. Four On-Premises DLP Enforcement Actions
Microsoft Purview supports four repository-level protective actions.
Action 1: Block access for everyone except authorized exceptions
The scanner modifies the file’s permissions to restrict access.
Microsoft documents exceptions for specific accounts, including the file owner, repository owner, administrator, and scanner account.
Example: A confidential payroll document is stored in a folder accessible to unauthorized employees.
The DLP policy identifies the document and applies restrictive permissions.
Action 2: Remove broad access permissions
The scanner can remove access entries associated with broad security principals, including:
- Everyone
- Authenticated Users
- Domain Users
Explicitly authorized users and groups can retain access according to the configured permissions.
Example: A financial document contains sensitive customer information and is accessible through the Domain Users group.
The scanner detects the content and removes the broad access entry.
Action 3: Inherit permissions from the parent folder
The scanner can force a file to inherit permissions from its parent folder.
By default, Microsoft applies this action only when the parent permissions are more restrictive than the file’s current permissions.
Example: A confidential document has incorrectly configured permissions.
The parent folder already restricts access to the Finance department.
The DLP policy can restore the more restrictive inherited permissions.
Action 4: Quarantine sensitive files
The scanner can remove a file from an inappropriate location.
When enforced, the original file is replaced with a .txt placeholder and a copy of the original is placed in a configured quarantine folder.
Example: A document containing customer payment information is discovered in a shared repository accessible to a broad internal audience.
The policy quarantines the document for authorized review.
Best practice: Always validate permissions and quarantine actions in a pilot environment before enabling production enforcement.
5. Practical Use Case: Protecting an HR File Server
Consider a company with 5,000 employees.
Its HR department stores 200,000 documents in:
\\FILESERVER01\HR
The documents include employment contracts, salary statements, identity records, and payroll exports.
Some documents have excessive NTFS permissions.
Recommended implementation
Deploy the Microsoft Purview Information Protection Scanner and configure On-premises repositories DLP.
| Configuration | Example |
|---|---|
| Policy name | DLP-ONPREM-HR-PII |
| DLP location | On-premises repositories |
| Repository | \\FILESERVER01\HR |
| Detection | Sensitive Information Types |
| Action | Remove broad access permissions |
| Initial mode | Simulation |
| Production mode | Enforcement after testing |
Expected behavior
The scanner evaluates the repository and identifies files matching the configured DLP conditions.
When enforcement is enabled, the scanner applies the selected protective action to matching files.
Security administrators can review results in Activity Explorer and scanner reports.
Important operational consideration
On-premises DLP is scanner-based.
It should not be treated as a real-time file-system interception mechanism.
Files are evaluated during scan cycles, and subsequent scans normally process new or modified files unless a full rescan is initiated.
6. Windows Server Endpoint DLP Architecture
Windows Server Endpoint DLP uses a different deployment model.
The server must be onboarded to Microsoft Defender for Endpoint, and Endpoint DLP must be enabled for Windows servers.
Architecture
Microsoft Defender for Endpoint | | Server onboarding vWindows Server 2022 | | Endpoint DLP enabled vMicrosoft Purview DLP | | Devices policy vSupported file activities | +-- USB copy +-- Network share copy +-- Other supported operations | vAudit / Restrict / Block
Supported operating systems
Microsoft documents Endpoint DLP support for Windows Server 2019 and later on eligible x64 installations.
This includes Windows Server 2019, 2022, and 2025.
Windows Server limitations
| Limitation | Description |
|---|---|
| Domain controllers | Not supported |
| Server Core | Not supported |
| Initial configuration | Endpoint DLP disabled by default |
| File classification | Disabled after installation of specified supported server updates |
| Previously classified files | Can remain protected under documented conditions |
| Defender version | Version 4.18.23100 or later for the relevant protection behavior |
Why classification limitations matter
Microsoft documents that the supported Windows Server updates disable the classification feature.
This means Endpoint DLP does not newly classify files on the server in that configuration.
However, files classified before those updates can remain protected when the required Defender version is installed.
Architecture recommendation: Use the Information Protection Scanner for repository discovery and classification rather than assuming Windows Server Endpoint DLP can classify all existing files.
7. Practical Use Case: Blocking USB Transfers on Windows Server
A financial organization uses Windows Server 2022 to process confidential documents.
The security team wants to prevent supported USB transfers of previously classified confidential files.
Example DLP policy
| Setting | Configuration |
|---|---|
| Policy name | DLP-SERVER-CONFIDENTIAL-USB |
| Location | Devices |
| Target | Windows Server 2022 |
| User scope | Authorized test account |
| Condition | Supported sensitivity-label condition |
| Activity | Copy to removable USB |
| Action | Block |
| Initial deployment | Simulation |
Configuration steps
Step 1: Onboard Windows Server
Open the Microsoft Defender portal:
https://security.microsoft.com
Navigate to:
Settings → Endpoints → Device management → Onboarding
Select the appropriate Windows Server operating system.
Download and deploy the supported onboarding package.
Step 2: Enable Windows Server Endpoint DLP
Open:
Navigate to the Endpoint DLP settings and enable Endpoint DLP for Windows Servers.
Step 3: Create a DLP policy
Create a custom DLP policy targeting the Devices location.
Configure the supported activity and restriction.
Step 4: Configure policy scope
Ensure that both the device and the user are included in the policy scope.
Step 5: Test enforcement
Use a previously classified test file whose protection is supported by the server configuration.
Review the results in Activity Explorer.
Important: Onboarding the server to Defender does not automatically activate Endpoint DLP.
8. Network Shares: Which DLP Technology Applies?
This scenario is especially important in hybrid environments.
Consider:
Windows 11 Laptop | | Opens document v\\FILESERVER01\Finance | vWindows Server 2022
An employee opens a confidential file stored on the server.
The employee then attempts to copy the document to a USB drive connected to their Windows 11 laptop.
On-premises repositories DLP
The scanner can evaluate the stored document and apply supported repository-level actions.
Windows Server Endpoint DLP
Server Endpoint DLP controls supported activities occurring on the server.
It should not be assumed to monitor every operation performed on a separate client computer.
Windows 11 Endpoint DLP
Endpoint DLP on the laptop can enforce supported device activities, including relevant operations involving files accessed through network shares.
Microsoft documents network share coverage settings for Endpoint DLP.
When enabled, applicable device-scoped DLP policies can cover network shares and mapped drives connected to the device.
Recommended architecture
Combine repository protection with Endpoint DLP on the devices where users interact with sensitive files.
Use Windows Server Endpoint DLP only where server-side activity restrictions are also required.
9. How to Configure On-Premises Repositories DLP
Step 1: Prepare prerequisites
Verify:
- Eligible Microsoft Purview licensing
- Required administrative permissions
- Supported scanner installation
- Scanner service account
- SQL Server prerequisites
- Repository permissions
- Network connectivity
- At least one published sensitivity label and label policy
Microsoft specifies that users who contribute to or consume content in scanned locations require appropriate licensing, not just the scanner account.
Step 2: Install the Information Protection Scanner
Install the Microsoft Purview Information Protection client and scanner.
Configure the scanner service and authentication.
Ensure that the scanner has the permissions needed to inspect and, when required, modify repository content.
Step 3: Configure a content scan job
Example:
| Setting | Value |
|---|---|
| Scan job | SCAN-FILESERVER01 |
| Repository | \\FILESERVER01\Finance |
| Schedule | Manual for initial testing |
| DLP rules | Enabled |
| Enforce | Off |
Step 4: Create a DLP policy
In Microsoft Purview:
Data Loss Prevention → Policies → Create policy
Select the On-premises repositories location.
Configure detection conditions and a supported enforcement action.
Step 5: Run a simulation
Start a scan and review matching content.
Check the Activity Explorer results and scanner reports.
Step 6: Enable enforcement
Microsoft requires enforcement to be enabled in two places:
- The DLP policy
- The scanner content scan job
Both must be configured appropriately before protective actions are applied.
Step 7: Run a full rescan when necessary
By default, the scanner performs incremental scans.
If detection rules or enforcement settings change, existing files may need to be evaluated again.
Use the portal’s Rescan all files option or:
Start-Scan -Reset
This initiates a full rescan.
10. How to Configure Windows Server Endpoint DLP
Step 1: Verify server compatibility
Confirm that the server:
- Runs a supported Windows Server version.
- Uses a supported installation type.
- Is not a domain controller.
- Has the required Defender components and updates.
Step 2: Onboard to Defender for Endpoint
Use the supported onboarding process in the Microsoft Defender portal.
Step 3: Enable Endpoint DLP
Activate Endpoint DLP for Windows Servers in Microsoft Purview settings.
Step 4: Create a device-based DLP policy
Select Devices as the DLP location.
Configure a supported condition and activity restriction.
Step 5: Validate user and device scope
Both must be in scope for the policy to apply.
Step 6: Test and monitor
Validate the policy using supported file activities and previously classified files.
Review Activity Explorer and endpoint diagnostics.
11. Troubleshooting Comparison
| Problem | Likely cause | Recommended investigation |
|---|---|---|
| Scanner does not detect files | Repository access or detection configuration | Review scanner permissions and content scan job |
| Scanner matches but does not enforce | Enforcement disabled | Check policy and scan job |
| Existing files are skipped | Incremental scan behavior | Initiate a full rescan |
| Server appears in Defender but not in DLP activity | Endpoint DLP not enabled | Verify Windows Server Endpoint DLP settings |
| USB copy is not blocked | Unsupported classification or activity | Check server limitations and policy scope |
| Network share file not protected on laptop | Network share coverage or device scope | Review Endpoint DLP settings |
| File permissions change unexpectedly | Repository DLP enforcement | Review the matching rule and scanner report |
Scanner reporting
Microsoft documents detailed scanner reports under:
%localappdata%\Microsoft\MSIP\Scanner\Reports
These reports can include:
- DLP mode
- DLP status
- DLP rule name
- DLP actions
- File owner
- Current NTFS permissions
- Applied NTFS permissions
These fields are useful for investigating policy behavior and unexpected permission changes.
12. Recommended Enterprise Architecture
Consider an organization with:
- 10 Windows file servers
- 1 million documents
- 2,000 Windows 11 laptops
- Multiple departments handling confidential information
A layered Microsoft Purview architecture could include three protection levels.
Layer 1: On-premises repository protection
Use the Information Protection Scanner to discover, classify, label, and protect sensitive repository content.
Use On-premises repositories DLP to correct excessive access permissions and quarantine sensitive files where appropriate.
Layer 2: Endpoint protection
Deploy Endpoint DLP on supported Windows workstations to control sensitive file activities.
Evaluate Windows Server Endpoint DLP separately for supported server-side operations.
Layer 3: Microsoft 365 data protection
Deploy DLP policies for supported Microsoft 365 workloads, including Exchange Online, SharePoint Online, OneDrive, and Teams.
Suggested deployment roadmap
| Phase | Activities | Deliverable |
|---|---|---|
| Assessment | Inventory repositories, permissions, and devices | Current-state assessment |
| Architecture | Design scanner and endpoint controls | Target architecture |
| Discovery | Scan representative repositories | Discovery report |
| Classification | Configure detection and sensitivity labels | Classification design |
| Pilot | Test repository and device policies | Test results |
| Enforcement | Activate approved restrictions | Production controls |
| Operations | Monitor policies and exceptions | Operational runbook |
13. Which Solution Should You Choose?
| Business requirement | Recommended technology |
|---|---|
| Discover sensitive files on a file server | MPIP Scanner |
| Apply sensitivity labels to on-premises files | MPIP Scanner |
| Remove excessive NTFS permissions | On-premises repositories DLP |
| Quarantine sensitive files | On-premises repositories DLP |
| Block supported USB transfers on a Windows laptop | Endpoint DLP |
| Restrict supported activities on Windows Server | Windows Server Endpoint DLP |
| Protect files accessed from a network share on a laptop | Endpoint DLP on the laptop |
| Protect sensitive files in SharePoint Online | Microsoft 365 DLP |
| Combine repository protection and device activity controls | Layered Purview architecture |
Conclusion
Microsoft Purview On-premises repositories DLP and Windows Server Endpoint DLP address different data security challenges.
On-premises repositories DLP focuses on discovering and protecting sensitive information stored in file shares and supported SharePoint Server repositories.
Windows Server Endpoint DLP focuses on controlling supported file activities on eligible Windows servers, with important platform and classification limitations.
For most hybrid organizations, the strongest approach is not choosing one technology over the other.
It is combining repository-level protection, endpoint activity controls, sensitivity labels, and Microsoft 365 DLP according to the actual business risks.
The key architecture question is:
Are you trying to protect where sensitive information is stored, or control what users do with that information?
The answer determines the appropriate Microsoft Purview capability.
Official Microsoft Documentation
- Learn about DLP for On-premises repositories
- Get started with DLP for On-premises repositories
- Use DLP with On-premises repositories
- Learn about Endpoint DLP
- Configure Endpoint DLP settings
- Get started with the Information Protection Scanner
- Running the Information Protection Scanner