Forum Discussion
Issues with ContentType for sensitivity labels in PowerShell?
- Apr 08, 2025
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