Applies to Product - Power Platform Administration
What’s happening?
Exporting Data Loss Prevention (DLP) policies results in an empty CSV file..
Reason:
Running PowerShell export commands may result in an empty file if the DLP policies are not retrieved correctly or if the output path is misconfigured.
Resolution:
To export your DLP policies to a CSV file, follow these steps:
- Open PowerShell and run the following command to retrieve your DLP policies: $dlpPolicies = Get-DlpPolicy
- Export the retrieved policies to a CSV file: $dlpPolicies | Export-Csv -Path "C:\Your\Folder\dlp_policies.csv" -NoTypeInformation
