How to create a new content database in sharepoint using powershell

Advertisement
In this article we will know,how to create a new content database using power shell

Using New-SPContentDatabase  Create a new content database and attach it to the web application

New-SPContentDatabase "yourdatabasename" -DatabaseServer "yourdbservername" -WebApplication http://yoursitename

Example
New-SPContentDatabase "DotNetSharePointDB" -DatabaseServer "DotNetSharePoint" -WebApplication http://dotnetsharepoint:1234

Also we can keep the Maximum Number of Site Collections and Site Collection Level Warning using -MaxSiteCount and -WarningSiteCount

New-SPContentDatabase "DotNetSharePointDB" -DatabaseServer "DotNetSharePoint" -WebApplication http://dotnetsharepoint:1234 -MaxSiteCount 2 -WarningSiteCount  1


Advertisements
SHARE

Unknown

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a comment