Report on RBS Configuration by Content Database Report on RBS Configuration by Content Database
Arpit Patel

Arpit Patel

September 04, 2012

All Post
Report-on-RBS-Configuration-by-Content-Database
Share:

RBS Configuration reporting by Content Database

Here’s a simple script that will report on the RBS configuration across all your Content DBs. It’s useful to be able to lower the minimum blob threshold size for your largest DBs. Just remember to do a PowerShell Migrate() to force the movement of documents in or out of RBS, and remember this command can take a while to run.

    Get-SPContentDatabase | foreach {$_;
  try {
      $rbs = $_.RemoteBlobStorageSettings;
      write-host "Provider Name=$($rbs.GetProviderNames())";
      write-host "Enabled=$($rbs.enabled)";
      write-host "Min Blob Size=$($rbs.MinimumBlobStorageSize)"
      } 
  catch {write-host -foregroundcolor red "RBS not installed on this database!`n"}
  finally {write-host "------------------------------------------------------------------`n"}
}

Leave a Reply

Your email address will not be published. Required fields are marked *

Want to talk?

Drop us a line. We are here to answer your questions 24*7.