Forum Discussion
Microsoftuser1810
Feb 13, 2023Copper Contributor
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).