Forum Discussion
The sign in name or password does not match
Hi all,
I keep getting:
The script I am using is:
What I am trying to do is create folders which have specific permissions. I have users a CSV which contains 3 titles Folder, user and role
Please help!
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:
- Connect-SPOService : The sign-in name or password does not match one in the Microsoft account system
- 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
- AB21805Bronze 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