Acquiring OAuth2 access tokens for automating Exchange Management Shell cmdlets 5/5 (2)

Overview If you’re seeking to automate Exchange Management Shell cmdlets in a .Net Framework application, you can use the new Exchange Online PowerShell V2 module The other option is to use a workaround which consists of using the well-known Exchange…

Read More

Outlook: Deploying a VSTO add-in using Visual Studio 2019 Installer (MSI) No ratings yet.

The easiest way to deploy Outlook VSTO add-ins is using ClickOnce, but it is also possible to create a Setup package for distribution. Previous versions of Visual Studio used InstallShield LE, but in Visual Studio 2019 you can use the…

Read More

Registering Azure Application to use OAuth in scripts No ratings yet.

Most of the scripts I’ve published to the Technet Code Gallery support OAuth, which means they can access mailboxes that have MFA enabled. But one requirement for OAuth is that an application is registered in Azure Active Directory, which is…

Read More

BodyAsHTML Regular Expression Rules in Contextual Office Add-ins for Outlook No ratings yet.

Introduction Outlook allows modern add-ins to be activated in contextual mode, meaning instead of showing a Taskbar or executing a function, they can be activated if a certain condition is evaluated as true within the body of an item. This…

Read More

MSAL Basics – A Guide to Azure AD’s Authentication Library 5/5 (3)

Background If you have ever created applications that incorporate the Graph API or any other modern authentication-requiring Microsoft API, then you would have most probably worked with ADAL (The Azure Active Directory Authentication Library) to get tokens for API access.…

Read More

Automating a welcome email to new users in an Exchange Hybrid environment No ratings yet.

Background Information I’ve previously written a blog post demonstrating how to automate the sending of welcome messages to new users in an on-premises environment. A similar technique can be used in a hybrid environment (when an organisation is using a…

Read More

An O365 API Authentication Documentation Guide – The first step in building your Microsoft Graph application 4/5 (5)

When I first came across the concept of using O365 REST-based APIs such as the Graph API and the Outlook REST API, I was overwhelmed with the immense number of possibilities that could be devised from such integration. However, what…

Read More