How can I run mount-spcontentdatabase again ?

Greg Booth 81 Reputation points
2023-03-28T23:18:36.5933333+00:00

I have run mount-spcontentdatabase to upgrade a content database. There were some errors that I would like to resolve ( via PowerShell). Can I simply run mount-spcontentdatabase again on the same database ?

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,333 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Xyza Xue_MSFT 23,836 Reputation points Microsoft Vendor
    2023-03-29T02:02:46.0833333+00:00

    Hi @Greg Booth

    The Mount-SPContentDatabase cmdlet attaches an existing content database to the farm. If the database being mounted requires an upgrade, this cmdlet will cause the database to be upgraded. NOTE: Please be aware that if a content database that does not exists is specified, it will be created by this cmdlet.

    Reference: https://learn.microsoft.com/en-us/powershell/module/sharepoint-server/mount-spcontentdatabase?view=sharepoint-server-ps

    You can run mount-spcontentdatabase again on the same database.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.