Why am I seeing "GetEndOfSupportMessage" when I open SharePoint Online Management PowerShell

Tevon2.0 1,101 Reputation points

I would like to use Powershell in order to import a site collection into a live server. However, when I open SharePoint Online Management PowerShell in admin mode, I get this message below. What is the cause and what would I need to do to rectify this?

Exception calling "GetEndOfSupportMessage" with "3" argument(s): "Login failed for user 'LINGUALISTEK\tking'."
At C:\Program Files\Common Files\Microsoft Shared\Web Server
Extensions\16\CONFIG\POWERSHELL\Registration\SharePoint.ps1:12 char:1

  • $adminWebApp.GetEndOfSupportMessage($false, [ref]$endOfSupportSeverit ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
  • FullyQualifiedErrorId : SqlException

After this issue is solved, I believe the correct commands to back up the site would be as follows

Backup-SPSite -Identity "http://devsite" -Path "C:\backup\portal.bak" -Force -NoSiteLock -Confirm:$False

and then I would just copy the backup file to the live server: put it in -Path "C:\backup", then use this SharePoint Server 2019 Management shell command to restore this site collection from the PC location:

Restore-SPSite "http://livesite" -Path "C:\backup\portal.bak" -Force -Confirm:$False

SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,596 questions
0 comments No comments
{count} votes

Accepted answer
  1. Michael Taylor 51,071 Reputation points

    I don't know what you mean by "opening SHarePoint in admin mode". Once you have the cmdlet you should be using Connect-SPOService to connect to the Sharepoint instance. That requires credentials. Based upon the error it appears the credentials you're using aren't correct. However the docs indicate that if you have a connection error you should enable modern authentication and it discusses how to do that.

0 additional answers

Sort by: Most helpful