Forum Discussion
bala official
Aug 01, 2018Copper Contributor
How to connect MSOL in powershell using App Password?
hi, My global administrators are having MFA enabled account. Is there any possibility to authenticate a user in MSOL using app password? or any other ways to connect-msolservice for MFA account. Is...
VasilMichev
Aug 01, 2018MVP
App passwords are NOT supported, simply use Connect-MsolService without any parameter to trigger the ADAL dialog and complete the 2FA challenge as normal.
- Helios CommsJul 30, 2019Iron ContributorBit of a catch-22 that isn't it. One is recommended to turn on MFA except it makes automated scripts nigh on impossible
- VasilMichevJul 30, 2019MVP
We have bypass/exclusions that we can use for that, and almost anything you can do with the MSOL module is already possible via the Graph anyway.
- Helios CommsJul 31, 2019Iron Contributor
VasilMichev ahh yes, only recently started looking at Graph. To be honest, Graph is a bit of a sideways step or maybe slightly backwards compared to PowerShell cmdlets. I assume there is a strong case for using HTTP calls instead of cmdlets? It's almost as if cmdlets have fallen out of favour which is weird considering how much effort has gone into them. At least with Graph, permissions are under control.