I have few customized labels in my organization and i want to use it when sending a new mail via PowerShell.
I did try the a method and found in the link Adding Unified Label to outgoing Outlook email via Powershell script and by this option i did try by adding GUID and the GUID is something like 6851ce54-5483-42b7-9228-757e253b1d36 but when i try this with the code like – $mail.propertyAccessor.SetProperty(“http://schemas.microsoft.com/mapi/string/{“My_GUID”}/msip_labels/0x0000001F”, “My_Label”);
this does not work, it still send mail with default Label.
Can some one please help ?
I did try the a method and found in the link Adding Unified Label to outgoing Outlook email via Powershell script and by this option i did try by adding GUID and the GUID is something like 6851ce54-5483-42b7-9228-757e253b1d36 but when i try this with the code like – $mail.propertyAccessor.SetProperty(“http://schemas.microsoft.com/mapi/string/{“My_GUID”}/msip_labels/0x0000001F”, “My_Label”);
Expecting to send Email via Powershell choosing the label which i want.
Harsha Vardhan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.