• Skip to primary navigation
  • Skip to content
  • Skip to footer
IAM Specialist AD, Azure AD and PowerShell
  • MS Graph PS
  • MS Graph App Roles
  • Exchange Online PS
  • KQL
  • Posts
  • About

    Using MSAL.NET with PowerShell

    Example use of the PowerShell MSAL module.

    less than 1 minute read

    Chris Dymond

    Chris Dymond

    Cyber Security, Azure AD, Identity and Access, Software Engineering.

    • Perth, Western Australia
    • GitHub
    • LinkedIn
    • Email

    A simple call to obtain a token using the wrapper library for MSAL.NET.

    PowerShell Code

    Note that this snippet depends upon the MSAL.PS PowerShell module.

    Categories: scripts

    Updated: October 10, 2021

    Twitter Facebook LinkedIn
    Previous Next

    You May Also Enjoy

    B2C Federating to a Single Azure AD Tenant

    less than 1 minute read

    A B2C tenant that federates back to single Azure AD tenant supporting Members, Guests (B2B) and Customers (or Consumers).

    Azure AD Group Writeback to On-Premises AD

    less than 1 minute read

    Using the Azure AD Connect Group Writeback feature to synchronise cloud groups to on-premises.

    Azure AD Group Writeback to On-Premises AD

    less than 1 minute read

    Using the Azure AD Connect Group Writeback feature to synchronise cloud groups to on-premises.

    Azure AD On-Premises Application Identity Provisioning

    less than 1 minute read

    Azure AD Application Identity Provisioning to On-Premise Applications that lack SCIM support.

    • GitHub
    • LinkedIn
    • Feed
    © 2023 Chris Dymond. Powered by Jekyll & Minimal Mistakes.