@Sundram Sontirkey - Thanks for the question and using MS Q&A platform.
To remove Microsoft Information Protection (MIP) labels from OneDrive files, you can use the PowerShell module for Azure Information Protection. Here are the steps you can follow:
- Install the Azure Information Protection PowerShell module by running the following command in PowerShell as an administrator:
Install-Module -Name AzureInformationProtection
- Connect to your Azure Information Protection tenant by running the following command:
Connect-AipService
- The correct cmdlet to remove the Azure Information Protection label from a file is
Set-AIPFileLabel
with the-RemoveLabel
parameter. Here is an example command to remove the label from a specific file:
And here is an example command to remove the label from all Word documents in a folder:Set-AIPFileLabel -Path "C:\path\to\file.docx" -RemoveLabel
This will remove the MIP label from all Word documents in the specified folder.Get-ChildItem -Path "C:\path\to\folder" -Filter *.docx | ForEach-Object { Set-AIPFileLabel -Path $_.FullName -RemoveLabel }
- After removing the MIP label from the files, you can migrate them to the new OneDrive account.
For more details, refer to Set-AIPFileLabel.
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.