Forum Discussion

sonstevold's avatar
sonstevold
Copper Contributor
Apr 02, 2025
Solved

Issues with ContentType for sensitivity labels in PowerShell?

I've previously used PowerShell to implement Sensitivity Labels using the New-Label cmdlt and ContentType for the "place" to implement the labels, but have been experiencing issues lately receiving the error:

New-Label: |Microsoft.Exchange.Management.UnifiedPolicy.InvalidMipLabelContentTypeException|The content type 'File, Email, Site' is invalid. 

 

Regardless of content in the label I'm trying to set up, or the content type/s I include, I get the same error. I've tested on separate machines, tenants, I've checked and double checked PowerShell versions, and more, with no success. Anyone out there with any suggestions?

  • Hello sonstevold ,

    I get the same error when I use only "File, Email, Site". Try using "-ContentType File,Email,Site,UnifiedGroup". I tested this and it works. The label scopes Site and Unified Group should be used together, similar to the one in the portal.

    Hope that helps!

    Please mark as solution, if you find the answer helpful. This will assist others in the community who encounter a similar issue, enabling them to quickly find the solution and benefit from the guidance provided.

     

    Regards,

    Prathista

  • Hello sonstevold ,

    I get the same error when I use only "File, Email, Site". Try using "-ContentType File,Email,Site,UnifiedGroup". I tested this and it works. The label scopes Site and Unified Group should be used together, similar to the one in the portal.

    Hope that helps!

    Please mark as solution, if you find the answer helpful. This will assist others in the community who encounter a similar issue, enabling them to quickly find the solution and benefit from the guidance provided.

     

    Regards,

    Prathista

Resources