Hello Thank you for your question and reaching out. I can understand you are having query\issues related to scripts for MFA ENABLED account You can use the Connect-ExchangeOnline cmdlet with the -AppId and -CertificateThumbprint options to connect to these services with an MFA-enabled account without requiring user participation. A self-signed certificate must be produced, an Azure AD app registration must be created, and the necessary permissions must be granted. Reference: https://learn.microsoft.com/en-us/answers/questions/1194547/unattended-scripts-to-connect?cid=kerryherger --If the reply is helpful, please Upvote and Accept as answer--
Unattaended scripts for MFA ENABLED accont
Anonymous
For the MFA enabled account I need to run the PowerShell scripts without any user intersection for the below connections 1.Connect-MsolService 2.Connect-SPOService
Windows for business | Windows Server | User experience | PowerShell
8,330 questions
2 answers
Sort by: Most helpful
-
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
1 deleted comment
Comments have been turned off. Learn more