Lone Wolfe SharePoint Blog
Lessons learned from a seasoned SharePoint Administrator
Wednesday, July 24, 2013
SharePoint 2010 PowerShell: Get all active databases and their ID for a SharePoint farm
Use the following PowerShell command to get all active databases and their associated ID for a SharePoint farm.
Get-SPDatabase | Sort-Object name | Format-Table Name, Id -Auto
Append the
out-file
cmdlet to send the output to a text file.
Get-SPDatabase | Sort-Object name | Format-Table Name, Id -Auto | out-file c:\spdb.txt
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)