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 there any possibilities to get the error as the account is MFA enabled while try to connect msol-service?.
6 Replies
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 CommsIron ContributorBit of a catch-22 that isn't it. One is recommended to turn on MFA except it makes automated scripts nigh on impossible
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.
- DeletedMFA should work, My account is MFA and I don't have issues connecting to powershell. Make sure you have the latest powershell module installed. my accounts are connected to work account but one of them is domain joined not azure ad joined and still can connect.