[BUG] intermittent Microsoft pop up after Login #2393
Replies: 3 comments
-
@216-Abhi - Can you please feedback when you try with the module If you're not familiar with the new PnP PowerShell module, this will get you started: https://pnp.github.io/powershell/articles/authentication.html With regards to |
Beta Was this translation helpful? Give feedback.
-
Hi @veronicageek , We are trying to authenticate using "-UseWebLogin" feature as it handles our single sign on correctly. Also, could you please confirm , Once the new version available for PnP, will it auto upgrade my installed version? Ex:- if I have V1.10 installed and after V1.11 available, will it auto upgrade my installed version to V1.11 ? If yes, then how to stop this ? |
Beta Was this translation helpful? Give feedback.
-
For unattended logins, would suggest using the client id + certificate issues, check this link: Weblogin is a legacy way of authentication, would suggest usage of certificate approach. |
Beta Was this translation helpful? Give feedback.
-
Notice
Many bugs reported are actually related to the PnP Framework which is used behind the scenes. Consider carefully where to report an issue:
Invoke-PnPSiteTemplate
orGet-PnPSiteTemplate
? The issue is most likely related to the Provisioning Engine. The Provisioning engine is not located in the PowerShell repo. Please report the issue here: https://github.com/pnp/pnpframework/issues.Reporting an Issue or Missing Feature
Getting intermittent Microsoft Login pop up in PowerShell while trying to download a file . (We complete the login activity before trying to download. )
FYI:- We are using PnP in an unatteneded automation. The 1st step is login to PnP and then download the file with a download script.
(Both scripts listed below for your review)
Login Script : -
Invoke-Expression "Cmd.exe /C RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2" (##To clear computer cache and force for login)
Connect-PnPOnline -Url "My Sharepoint URL" -UseWebLogin
File Download: -
Connect-PnPOnline -Url "My SharePoint URL2" -UseWebLogin (##Reconnecting to a different Site/Subsite in same server)
Get-PnPFile -AsFile -Url -Filename $sourceitem.Name -Path "C:\Apps\AB"
Expected behavior
An Intermittent Microsoft login pop up should not appear while downloading.
We are expecting same behavior in new PnP.powershell Module
Actual behavior
Getting this popup while trying to run download script shared above.
Steps to reproduce behavior
The scripts running in unattended mode and the issue happens intermittently . Hence it is difficult to reproduce.
However if the login is not success (Step -1 Sp login script run), the download script prompt Microsoft login window.
We suspect if by any chance the SharePoint login session is getting deactivated within few minutes. This will also result the login pop up screen again while running the Download script.
What is the version of the Cmdlet module you are running?
(you can retrieve this by executing
Get-Module -Name "PnP.PowerShell" -ListAvailable
)The current powershell module is "SharePointPnPPowerShellOnline " V "3.26.2010.0"
Migrating to PnP.Powershell V 1.10
Which operating system/environment are you running PnP PowerShell on?
Beta Was this translation helpful? Give feedback.
All reactions