pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
987 stars 665 forks source link

Connect-PNPOnline not working with -UseWebLogin after 2 iterations #1702

Open sgandewar opened 5 years ago

sgandewar commented 5 years ago

Need to iterate through all the site collections to make Quick Launch update. How to connect using connect-pnponline with -UseWebLogin? In the iteration for first 2 site collections, UseWebLogin prompt comes and automatically goes off but with the 3rd site collection pop-up doesnt closed off and Connect-PnPonline doesn't work afterwards.

Connect-PnPOnline -Url "Site1" -UseWebLogin --> works fine Connect-PnPOnline -Url "Site2" -UseWebLogin --> works fine Connect-PnPOnline -Url "Site2" -UseWebLogin --> Doesn't work

Which version of the PnP-PowerShell Cmdlets are you using? PnP PowerShell for SharePoint 2013

How did you install the PnP-PowerShell Cmdlets? Installed through the PowerShell Gallery with Install-Module

erwinvanhunen commented 5 years ago

Just to make sure, as you state that you are using the Cmdlets for SP 2013: you are using this towards a SharePoint 2013 on-premises installation? I just tested with the cmdlets for SPO towards SharePoint Online and encounter no problems. If you are using this towards SP2013, and it is consistent, if you login repeatedly in a webbrowser towards your sites, does it also fail after 3 tries?

The pop-up closes itself it if receives the expected answer (token) from the server. If for some reason the server does not send this token, the browser pop-up will not close. As the first two tries work, I'm more thinking towards a server configuration related issue here.