Forum Discussion

CrossingTheMoor's avatar
CrossingTheMoor
Copper Contributor
Sep 18, 2020
Solved

Searching Sharepoint in PowerShell

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 ...
  • Beau Cameron's avatar
    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

Resources