Sep 17 2020 11:21 PM - edited Sep 17 2020 11:24 PM
Hello all,
First post from me! I have been struggling for a couple of days with a PowerShell issue - I have a script that successfully opens a SpreadSheet from one of those columns I get a list of IDs and I am trying to search our SharePoint site for all PDFs with those IDs in the title. I have tried a number of PNP PowerShell commands and seem to hit the same brick wall. I have tried with and without the connection parameter. Any ideas?
Sep 18 2020 02:36 PM
Solution@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
Sep 22 2020 05:09 AM
Thanks @Beau Cameron - that got it - seems pretty slow but getting loads of data back now.
Sep 22 2020 05:25 AM
Sep 18 2020 02:36 PM
Solution@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