Get UPN for logged on Azure AD user with…

This is how you get the User Principal Name (UPN) for the currently logged on Azure AD user on a Windows machine. It works...
Erik
28 sec read