Working around with: Connect-SPOService : Current site is not a tenant administration site.
For the “Current site is not a tenant administration site” error message, which may look like following:
Connect-SPOService : Current site is not a tenant administration site.
At line:1 char:1
+ Connect-SPOService -Url https://mysite.sharepoint.com -Credential $credentials
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Connect-SPOService], ServerException
+ FullyQualifiedErrorId : Microsoft.SharePoint.Client.ServerException,Microsoft.Online.SharePoint.PowerShell.Con
nectSPOService
You get this error because you’re not entering the URL for your “Sharepoint Online Administration Center” site… Which is typically your normal sharepoint online URL, but then with a -admin
after it, such as:
https://mysite-admin.sharepoint.com (assuming that your sharepoint online site is https://mysite.sharepoint.com). Therefore, then whole Powershell script would be:
Connect-SPOService -Url https://mysite-admin.sharepoint.com -credential username@mysharepointsite.com
Encourage Author, Please share on Twitter!! – Just one Click Tribute!
NOTE: The -admin site is setup automatically. You don’t have to do anything. Just type in your sitename and then add the -admin.sharepoint.com to the end and you’ll be prompted to log in.
June 1, 2016 at 9:35 AM
It worked. The ‘-admin’ was what I was missing. Thank you 🙂
August 1, 2018 at 6:49 AM
Welcome Bro.
October 25, 2016 at 10:58 AM
Thanks. Worked for me.
August 1, 2018 at 6:48 AM
You are always welcome.
October 6, 2017 at 9:41 AM
Thanks, it worked for me
August 1, 2018 at 6:47 AM
You are always welcome.