Connect-PnPOnline problem
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.