How to connect to SharePoint Online using PnP PowerShell?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this answer should be reported.
To work with SharePoint Online from PowerShell, we need to install SharePoint Online management shell. Once you installed successfully, you can run the below cmdlet to connect to SharePoint Online sites.
Connect-SPOService -Url https://-admin.sharepoint.com -credential yourusername@.onmicrosoft.com