Aug 06 2020
07:49 AM
- last edited on
May 24 2021
02:36 PM
by
TechCommunityAP
Aug 06 2020
07:49 AM
- last edited on
May 24 2021
02:36 PM
by
TechCommunityAP
Hi All
I wonder if anyone can help. I am trying to add a list of onedrive for business sites to a dlp policy. The code I am using is:
$new = import-csv C:\Temp\sitestoadd.csv
$newlocations = $new.OD4BSites
Set-DlpCompliancePolicy -Identity "Personally Identifiable Information (PII) - External" -AddOneDriveLocation $newlocations
I am getting the error shown below:
Cannot process argument transformation on parameter 'AddOneDriveLocation'. Cannot convert value "https://xxxuk-my.sharepoint.com/personal/x_xxxxx_xxx_com to type "Microsoft.Exchange.Data.MultiValuedProperty`1[System.String]" + CategoryInfo : InvalidData: (:) [Set-DlpCompliancePolicy], ParameterBindin...mationException
+ FullyQualifiedErrorId : ParameterArgumentTransformationError,Set-DlpCompliancePolicy
+ PSComputerName : eur03b.ps.compliance.protection.outlook.com
I have searched and searched but cannot find an answer.
Does anyone have any ideas?
Many thanks
Aug 06 2020 09:01 AM
Might help if you show us what the variable is set to. You can pass either a list variable, or comma separated values.
Aug 06 2020 09:48 AM