Forum Discussion
Searching Sharepoint in PowerShell
- Sep 18, 2020
CrossingTheMoor Hi. First, you don't need that connection parameter. Once you connect to your site via Connect-PnPonline, you are already connected.
Second, the error that you have is because your Connect-PnP Online Command is wrong. You want to connect to the site specifically, not the page on your site.
Connect-PnPOnline -url https://yoursite.sharepoint.com -UseWebLogin
CrossingTheMoor Hi. First, you don't need that connection parameter. Once you connect to your site via Connect-PnPonline, you are already connected.
Second, the error that you have is because your Connect-PnP Online Command is wrong. You want to connect to the site specifically, not the page on your site.
Connect-PnPOnline -url https://yoursite.sharepoint.com -UseWebLogin
Thanks Beau Cameron - that got it - seems pretty slow but getting loads of data back now.