0

I have several scripts to edit user profile fields through Powershell without active MFA. Sure I can have a user with a complex password outside MFA but I don't want that. Can anyone point me to one script that works with MFA? It's a sharepoint online system. Thanks a lot Nuno

0

I takled about in this question. If you need to use MFA authentication, just use this manual for login.

Use this code:

if ( $MFA ) {
    Login-AzureRmAccount
    Connect-SPOService -Url $urlSPOAdmin
}

Hope it helps!

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.