Forum Discussion
gadagottiraj
Feb 21, 2020Brass Contributor
unable to apply PNP template due to MFA
Hello Everyone, I have MFA enabled due to which whenver I run PNP powershell I have to user -useweblogin. But this is also not working when I loop through several sites. requirement: 1. Us...
_Blackfoj
May 01, 2020Copper Contributor
gadagottiraj, I'm sure the OP has already figured this out but for anyone googling this; to my knowledge associating a hub whilst using -useweblogin is not supported.
PittSharePointPro
Jun 29, 2020Iron Contributor
_BlackfojDoes this mean that it is not possible with MFA enabled? or is there an alternative to connect with MFA without -useweblogin?
- _BlackfojJun 30, 2020Copper Contributor
PittSharePointPro I believe you just drop the -UseWebLogin if MFA is present and authenticate using Credential Manager or just typing into the PowerShell authentication prompt. Hope that helps!
- PittSharePointProJun 30, 2020Iron Contributor
_Blackfoj - thanks! I'll try credential manager. It will be nice if the template will apply the associated hub but not a critical issue otherwise since it's just a couple easy clicks.