Forum Discussion

Microsoftuser1810's avatar
Microsoftuser1810
Copper Contributor
Feb 13, 2023

Powershell MSOL in unantended scripting

I have been working on changing a PowerShell script from Basic auth to Modern auth but the basic script uses MSOL commands. Is there a way I can Connect-MsolService using unintended scripting?

1 Reply

  • The MSOL module is being deprecated in few months mate, switch to using the Graph SDK for PowerShell. Among other things, it supports automation scenarios (passing a token, using a certificate, using a managed identity, etc).

Resources