Error: A window handle must be configured.

If you are trying to connect to Exchange Online

and getting this error

Error Acquiring Token:

A window handle must be configured. See https://aka.ms/msal-net-wam#parent-window-handles

Here is the Solution:

  1. Aquire access token by using following script :

Important: RUN Each line separately!

Enter your SAML credentials for the Exchnage Online admin

2. Connect to Exchange Online by using access token with following command:

Leave a Reply

Your email address will not be published. Required fields are marked *