When you have large content databases on your web application, the Configuration Wizard can error out or just never seem to finish.
If that is the case, you can un-mount the content databases then run the wizard, then re-mount the databases with the script that is produced by the script below. don't forget to replace the <<DatabaseServer>> with your database server name. ex. mySQLServer.mydomain.com
and
Add-PSSnapin Microsoft.SharePoint.Powershell
$data = Get-SPContentDatabase
foreach($d in $data)
{
write-host 'Dismount-SPContentDatabase -Identity' $d.Id ' -WarningAction SilentlyContinue'
}
foreach($d in $data)
{
write-host 'Mount-SPContentDatabase -Name '$d.Name '-WebApplication '$d.WebApplication.Url' -DatabaseServer <<DatabaseServer>> -WarningAction SilentlyContinue'
}
No comments:
Post a Comment