Share via

Connect-PnPOnline problem

Akbar, Hanif 0 Reputation points
2024-11-26T07:31:21.3333333+00:00

Apologies, I am not too hot on powershell.

I had a script that started as follows:

Connect-SPOService -url https://blogg-admin.sharepoint.com

Connect-PnPOnline -Url https://blogg-admin.sharepoint.com -PnPManagementShell

This used to work fine with me getting challenged for password and MFA.

Now I get MFA challenge for first line. Running the 2nd line says I must provide -Tenant host name. So when I run the following line:

Connect-PnPOnline -Url https://blogg-admin.sharepoint.com -Tenant 'blogg.admin.sharepoint.com' -PnPManagementShell

or

Connect-PnPOnline -Url https://blogg.sharepoint.com -Tenant 'blogg.sharepoint.com' -PnPManagementShell

its says it cant find the tenant.

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.