Asked by:
Is it possible to do below steps in scripting ?

Question
-
How to add Secure Email in Office 365
1. Open Outlook
2. Click on Create New in the Quick Steps box
3. Change the name to “Secure – New” (Note the name can be anything but it needs to be short to see it all) Also click the drop down and select New Message and click Show Options
4. Add “[marked for secure delivery]” into the subject and click Finish
Tuesday, July 23, 2019 3:01 PM
All replies
-
A lot is possible. You will need to work with Outlook's COM objects. The below is for Visual Studio C# but can be easily convert to PowerShell
https://docs.microsoft.com/en-us/visualstudio/vsto/outlook-object-model-overview?view=vs-2019
If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful. (99,108,97,121,109,97,110,50,64,110,121,99,97,112,46,114,114,46,99,111,109|%{[char]$_})-join''
- Proposed as answer by LeeSeenLiMicrosoft contingent staff Wednesday, July 31, 2019 7:05 AM
Tuesday, July 23, 2019 3:08 PM -
To send a mail item with PowerShell use the outlook new mail item method.
You cannot access Quick steps from the COM object model. You can edit the XML for the steps. Here is a forum post discussing how to do this:
\_(ツ)_/
- Proposed as answer by LeeSeenLiMicrosoft contingent staff Wednesday, July 31, 2019 7:05 AM
Tuesday, July 23, 2019 3:48 PM -
Hi,
Was your issue resolved?
If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.
If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.
If no, please reply and tell us the current situation in order to provide further help.
Best Regards,
Lee
Just do it.
Wednesday, July 31, 2019 7:05 AM