OneScript Team Blog

A world of automation script samples based on IT Pros' real-world tasks

[Script of Nov 26th] List Unused Content Databases using PowerShell

[Script of Nov 26th] List Unused Content Databases using PowerShell

  • Comments 1
  • Likes

Script Download: ListUnusedContentDatabases.zip
http://gallery.technet.microsoft.com/scriptcenter/List-Unused-Content-c078e894/

This script can be used to list your unused SharePoint content databases. It can also be used to list used content databases or all content databases.

By default, we can use Get-SPContentDatabase to retrieve SharePoint content databases. But this can only list the database that’s status is Ready. The content database cannot be listed if its status is Offline.

 

image image
image image

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment