Recently while connecting to SharePoint online site from PowerShell, I got an error like below:
Connect-SPOService: Current site is not a tenant administration site.
I was providing the credentials which are a which is my Office 365 tenant administrator account. So there were no issues regarding permission.
Here I run the command like below:
Connect-SPOService -Url https://onlysharepoint2013.sharepoint.com/ -credential firstname.lastname@example.org
Then I got the below error.
Connect-SPOService : Current site is not a tenant administration site.
At line:1 char:1
+ Connect-SPOService -Url
+ CategoryInfo : NotSpecified: (:) [Connect-SPOService], ServerEx
+ FullyQualifiedErrorId : Microsoft.SharePoint.Client.ServerException,Micr
The error looks like below:
Here we need to enter the Sharepoint Online Administration Center site. The admin center site url will be like below:
The admin site will be created automatically. So the PowerShell command will be like below:
Connect-SPOService -Url https://onlysharepoint2013-admin.sharepoint.com/ -credential email@example.com
Also, you can read some SharePoint PowerShell articles:
– Delete and Restore Site Collection using PowerShell in SharePoint Online
Now when you will run the above command the error will not come. You will not receive any error related to Connect-SPOService Current site is not a tenant administration site.
Hope this will be helpful.
Download FREE SharePoint 2019 Installation PDF Guide
This FREE PDF contains, Steps by step guide to install SharePoint 2019 Preview, prerequisites, hardware and software new features. First impression to SharePoint Server 2019 new modern site, modern lists and modern document libraries.
You May Also like the Following SharePoint Online Tutorials: