0

I am trying to connect to PnPOnline using the following

Connect-PnPOnline -Url https://Company.sharepoint.com/sites/testclientsite -PnPO365ManagementShell -LaunchBrowser

After authenticating through the browser, I keep receiving the error:

Token receivedConnect-PnPOnline : The handle is invalid.

I have tried with and without the -LaunchBrowser. I have restarted everything possible. I have all the proper permissions and it works using -useweblogin, but that keeps losing token after a group or two are created. I receive a The remote server returned an error: (403) Forbidden. Any help would be appreciated.

Update 7/2/2019

I am on SharePoint PnP PowerShell Online version: 3.10.1906.0 I am on SharePoint Online Management Shell version: 16.0.8924.1200

I know the code is correct because I would get an invalid code in the authentication window. The error comes after the token is received. Still and issue. Here is a screenshot.

enter image description here

0

Download and install the SharePoint Online Management Shell.

Download and install the SharePoint PnP PowerShell Online.

Then open the SharePoint Online Management Shell, and run your command again. Mark sure enter the right code provide in the SharePoint Online Management Shell.

It working fine in my test.

enter image description here

  • I have done all of this. I am on SharePoint PnP PowerShell Online version: 3.10.1906.0 I am on SharePoint Online Management Shell version: 16.0.8924.1200 I know the code is correct because I would get an invalid code in the authentication window. The error comes after the token is received. Still and issue. – shawncho Jul 2 at 17:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.