Pages

Tuesday, July 2, 2013

Remove SharePoint Admin Database Guid/ Rename SharePoint admin Database


Remove SharePoint Admin Database Guid/ Rename SharePoint admin Database

PowerShell commands for removing Guid for SharePoint admin content DB

## Step1 Create New SharePoint content Database for SharePoint central admin site

New-SPContentDatabase -Name <New Database Name> -webapplication <web application URL>

## Get SharePoint database ID’s for central admin site which is old and new DB’s

Get-spwebapplication -identity <Web application URL> |Get-spcontentdatabase       

## Move central admin site to from old Database to new SharePoint content database using Database ID

Get-spsite -contentdatabase <Source Database ID> | Move-spsite -DestinationDatabase <Destination Database ID>

###Click A to confirm for moving the site from old database to new database

#### Remove OLD SharePoint admin content database using Old database ID

Remove-SPContentDatabase -identity <OLD Database ID>