Replies: 9 comments
-
I have exactly the same issue with same pwsh version and Windows 11 (on both Pro and Enterprise versions). Issue occurred on previous pwsh versions as well. |
Beta Was this translation helpful? Give feedback.
-
Did you try Connect-PnPOnline -Url "xxx" -Interactive ? |
Beta Was this translation helpful? Give feedback.
-
I use the |
Beta Was this translation helpful? Give feedback.
-
The login screen should actually only appear once with the first connect statement. It sounds like there is a disconnect statement in the foreach loop. If this is the case, comment this out and try again. |
Beta Was this translation helpful? Give feedback.
-
This is an example:
I don't know if you can test it, but if you try to run this code with a versione newer than 2.2.0, it will get stuck after 3-4 iterations.
To me, using |
Beta Was this translation helpful? Give feedback.
-
Same behaviours on my side. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Using PnP.PowerShell 2.5.0 At 2nd iteration is asking once again to login. Is this behavior related to Az.Accounts module? |
Beta Was this translation helpful? Give feedback.
-
Can anyone tell me why do I meet this issue and help me fix it? |
Beta Was this translation helpful? Give feedback.
-
Good morning,
To perform some deployment task, I need to connect to multiple SharePoint sites.
I use
Connect-PnPOnline -Url "xxx" -UseWebLogin
inside a foreach to do it.Untill version 2.2.0, I could create hundreds of connections to different sites without any issue.
Starting from version 2.3, after 3-4 connections, the login prompt gets stuck in a white screen and I have to close the window and the script stops.
Everytime you update the module, I test it but I always have to rollback to versione 2.2.0.
I use PowerShell 7.4.4 on Windows 11 Pro and all my teammates are experiencing the same issue.
What did you change to the cmdlet after version 2.2.0?
Does anyone have another way to do those multiple connections in sequence?
Beta Was this translation helpful? Give feedback.
All reactions