Share via

Unattaended scripts for MFA ENABLED accont

Anonymous
2023-04-04T09:35:36.1133333+00:00

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
0 comments No comments

2 answers

Sort by: Most helpful
  1. 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

  2. Limitless Technology 45,241 Reputation points
    2023-04-05T09:53:57.67+00:00

    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--

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.