Views:

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:

  1. Open PowerShell and run the following command to retrieve your DLP policies: $dlpPolicies = Get-DlpPolicy
  2. Export the retrieved policies to a CSV file: $dlpPolicies | Export-Csv -Path "C:\Your\Folder\dlp_policies.csv" -NoTypeInformation
Replace "C:\Your\Folder\dlp_policies.csv" with the full file path where you'd like to save the CSV file.