Friday, March 17, 2017

SharePoint 2016 - New-SPConfigurationDatabase Server role parameter is required when creating or joining a farm

 

While installing SharePoint 2016, I got the below error which says New-SPConfigurationDatabase Server role parameter is required when creating or joining a farm. The error comes when I run New-SPConfigurationDatabase through SharePoint 2016 Management Shell

While installing SharePoint 2016, I got the below error which says New-SPConfigurationDatabase Server role parameter is required when creating or joining a farm. The error comes when I run New-SPConfigurationDatabase through SharePoint 2016 Management Shell

Solution:

In SharePoint Server 2016 MinRole you need to give while installing, this can be used to specify the role that should be assigned to a specific server when configuring SharePoint Products and Technologies. The MinRole can be like below:

New-SPConfigurationDatabase –DatabaseName SharePoint_Config –DatabaseServer WIN-JC2B1V15KM5 –AdministrationContentDatabaseName SharePoint_Content –Passphrase (ConvertTo-SecureString ‘Passphrase’ –AsPlaintext –Force) –FarmCredentials (Get-Credential) -localserverrole SingleServerFar

Here -localserverrole SingleServerFarm is the main parameter. 

Hope this will be helpful.

No comments:

Post a Comment