SharePoint Powershell command
Get-SPDatabase | select Name | out-file “list.txt” — give you the list of all the Content Database names in your SharePoint Farm into a file
Windows servers tech tips
Get-SPDatabase | select Name | out-file “list.txt” — give you the list of all the Content Database names in your SharePoint Farm into a file