Migrate a SharePoint content database with powershell

This powershell script will allow you to easily migrate a content database from one SharePoint server to another. #requires -version 4.0 #requires -runasadministrator [CmdletBinding()] Param( [Parameter(Mandatory=$true)][System.String]$DatabaseName, [Parameter(Mandatory=$true)][System.String]$ServerName, [Parameter(Mandatory=$true)][System.String]$WebApplication ) ### # Enable the following when version 4 is not available