In this post, I will show How to Which database server host SharePoint configuration database using PowerShell?
You may also like to check Failed to create the SharePoint Configuration Database.
Steps
- Open SharePoint Management Shell as Administrator.
![Get SharePoint configuration database Server using PowerShell run-sharepoint-management-shell-as-administrator](https://i0.wp.com/spgeeks.devoworx.com/wp-content/uploads/2017/03/run-sharepoint-management-shell-as-administrator.gif?resize=343%2C530&ssl=1)
- Run the below cmdlet.
(Get-SPDatabase | ?{$_.Type -eq "Configuration Database"}).server
![Get SharePoint configuration database Server using PowerShell Get-SPConfigDatabase in SharePoint](https://i0.wp.com/spgeeks.devoworx.com/wp-content/uploads/2016/08/get-spconfigdatabase-in-sharepoint.gif?resize=561%2C131&ssl=1)
- Using
Get-SPDatabase
you can list all SharePoint databases. - You can specify specific fields to be shown like “Select -property Name, Type“.
- You can also filter the SharePoint database with its type “Configuration Database“.
- Finally, you will add “.server” to get which database server host the SharePoint Configuration Database.
![Get SharePoint configuration database Server using PowerShell Get-SPDatabase in SharePoint](https://i0.wp.com/spgeeks.devoworx.com/wp-content/uploads/2016/08/get-spdatabase-in-sharepoint.gif?resize=561%2C351&ssl=1)
Steps
- Open Central Administration.
- Below “System Settings” > Click on “Manage Servers In this farm“.
![Get SharePoint configuration database Server using PowerShell System Settings in SharePoint](https://i0.wp.com/spgeeks.devoworx.com/wp-content/uploads/2016/04/system-settings.png?resize=305%2C119&ssl=1)
- Below “Farm Information” > Check “Configuration Database Server“.
![Get SharePoint configuration database Server using PowerShell Get SharePoint configuration database Server using PowerShell](https://i0.wp.com/spgeeks.devoworx.com/wp-content/uploads/2020/02/Get-the-SharePoint-Configuration-Database-Server-using-PowerShell.jpg?resize=370%2C206&ssl=1)
Applies To
- SharePoint 2019.
- SharePoint 2016.
- SharePoint 2013.
Conclusion
In conclusion, we have learned how to get Which database server hosts the SharePoint Configuration Database?