PowerShell script to tell you the size of your Offline Address Book. I decided
to use this script as inspiration to write a PowerShell that could tell you the
size in MB of all your Exchange 2010 Databases. Here is the code for the
PowerShell script or you can just download from here.
foreach ($DB in $MYDatabases)
{
# Build Database
File Path
$MyDriveString =$DBPathString.substring(0,1);
$UNCPath = “\\$($db.Server)\”
+ $MyDriveString + “$” ;
$UNCDBPath =
$DBPathString.Replace($MySubString,$UNCPath);
#Get File Info
$DBFiles = get-childitem -path $UNCDBPath;
[string]$DBFILESIZE = $MBSize;
$MyData | Add-Member NoteProperty Name
$DB.Name;
$MyData | Add-Member NoteProperty Server $DB.Server;
$MyData;
}

