Share via

Is there a way to remove a sensitivity label from a document without changing the modification data?

Anonymous
2024-08-01T19:52:27+00:00

I've been tasked with removing a sensitivity label from a number of files. It would be ideal if I could make this change without altering the modification history. I know cmdlets like Remove-FileLabel exist that can achieve this, but their use requires the MIP client, and I'm not able to use it. Is there a mechanism by which I could remove the sensitivity label from a file without changing the "Last Modified" information?

Microsoft 365 and Office | SharePoint | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2024-08-02T04:53:30+00:00

    Dear shiraz_ahmed_1,

    Good day! Thank you for posting in our community. Your question is "Is there a way to remove a sensitivity label from a document without changing the modification data?".

    You may try the cmdlet **Unlock-SPOSensitivityLabelEncryptedFile.It doesn't require MIP client, but use"SharePoint Online Management Shell"**module.

    Unlock-SPOSensitivityLabelEncryptedFile -FileUrl "https://contoso.com/sites/Marketing/Shared Documents/Doc1.docx" -JustificationText "Need to decrypt this file"
    

    Here are the related articles for your reference.
    Enable sensitivity labels for files in SharePoint and OneDrive | Microsoft Learn

    Unlock-SPOSensitivityLabelEncryptedFile (Microsoft.Online.SharePoint.PowerShell) | Microsoft Learn

    Thank you for your cooperation and have a nice day!

    Best Regards,

    Sophia

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2024-08-07T11:59:56+00:00

    Dear shiraz_ahmed_1,

    Yes, it also removes the label even it is not encrypted as per my testing.

    Thank you for your cooperation and have a nice day!

    Best Regards,

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2024-08-02T16:59:28+00:00

    The files in question are not encrypted, only labeled. Would this cmdlet still work in that scenario?

    1 person found this answer helpful.
    0 comments No comments