Forum Discussion

2 Replies

  • AB21805 Which version of SharePoint are you using? Is MFA enabled for user account you are using to run this PowerShell?

    If you are using SharePoint online and Multi factor authentication (MFA) is enabled for the user account, try using app password instead of normal password for authentication.

     

    Check below threads:

    1. Connect-SPOService : The sign-in name or password does not match one in the Microsoft account system 
    2. Use App Password to Authenticate with PowerShell PnP 

    Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

    For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs

    • AB21805's avatar
      AB21805
      Bronze Contributor

      Hi ganeshsanap 

       

      I have 3 versions: 

       

       

      Can you confirm if I have the correct version? 

       

      I have tried MFA account and non MFA account (Which has Sharepoint ADmin rights)

       

      This script used to work fine I am not sure whats going on, is my script too outdated is there one similar for what I want to accomplish which is create folders in a area on sharepoint with specific permissions

Resources