[Solved] Current site is not a tenant administration site error in SharePoint Online PowerShell

current site is not a tenant administration site

In this SharePoint Online PowerShell tutorial, learn how to solve current site is not a tenant administration site error which comes in SharePoint Online while connecting to SharePoint Online from PowerShell.


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.

In PowerShell, 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 bijay@onlysharepoint2013.onmicrosoft.com

Then I got the below error.

Connect-SPOService : Current site is not a tenant administration site.
At line:1 char:1
+ Connect-SPOService -Url
https://onlysharepoint2013.sharepoint.com/sites/SPTraini …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Connect-SPOService], ServerEx
ception
+ FullyQualifiedErrorId : Microsoft.SharePoint.Client.ServerException,Micr
osoft.Online.SharePoint.PowerShell.ConnectSPOService

The error looks like below:

current site is not a tenant administration site
current site is not a tenant administration site

Solution to current site is not a tenant administration site:

To connect to SharePoint Online site from PowerShell, we need to provide SharePoint Online admin URL. The SharePoint Online Administration Center site URL will be like below:

https://onlysharepoint2013-admin.sharepoint.com/

The admin site will be created automatically when you will sign up for an Office 365 subscription. So the PowerShell command will be like below:

Connect-SPOService -Url https://onlysharepoint2013-admin.sharepoint.com/ -credential bijay@onlysharepoint2013.onmicrosoft.com

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.

You may like following SharePoint PowerShell tutorials:



Hope this will be helpful to resolve current site is not a tenant administration site error in SharePoint Online PowerShell.

Check out Best Alternative to InfoPath -> Try Now

You May Also like the Following SharePoint Online Tutorials:

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →