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
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 44,766 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--

    0 comments No comments

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

Your answer

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