Report Available Database Space

Searches mailbox server application logs and reports available database space.

 
 
 
 
 
4 Star
(1)
Add to favorites
Exchange
8/10/2009
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Getting Error
    1 Posts | Last post July 09, 2012
    • I deleted the space and got past that error. Now I am getting:
      
      Cannot index into a null array.
      At C:\scripts\DB.ps1:9 char:62
      +     foreach ($j in $colevents) {$result+= $j.replacementstrings[ <<<< 1]
          + CategoryInfo          : InvalidOperation: (1:Int32) [], RuntimeException
          + FullyQualifiedErrorId : NullArray
      
      Cannot convert value "    " to type "System.Int32". Error: "Index was outside the bounds of the array."
      At C:\scripts\DB.ps1:10 char:2
      + + <<<< "`t"+$j.replacementstrings[0]+"`n"}
          + CategoryInfo          : NotSpecified: (:) [], RuntimeException
          + FullyQualifiedErrorId : RuntimeException
      
      Could not find a part of the path 'C:\tscrips\test.xls'.
      At C:\scripts\DB.ps1:12 char:10
      + $result > <<<<  c:\tscrips\test.xls
          + CategoryInfo          : OpenError: (:) [], DirectoryNotFoundException
          + FullyQualifiedErrorId : FileOpenFailure
  • Script is not working
    2 Posts | Last post September 05, 2011
    • Hello 
      
      As I have checked this script and found that its not working I got the below error while running this script. Is anyone can help me out how it can run as we out database reaching upto the limit so we have to plan for offline defragmentation and we cant check through event id 1221 as we have more than 1000 databases in our environment.
      
      You must provide a value expression on the right-hand side of the '-' operator.
      At C:\Program Files\Microsoft\Exchange Server\Scripts\white.ps1:7 char:77
      +      $colevents= $pslog.Entries | where-object { ($_.EventID -like "1221") - <<<<  AND ($_.TimeGenerated -like "$date*")}     foreach ($j in $c
      olevents) {$result+= $j.replacementstrings[1] +"`t"+$j.replacementstrings[0]+"`n"} } $result > c:\temp\test.xls
          + CategoryInfo          : ParserError: (:) [], ParseException
          + FullyQualifiedErrorId : ExpectedValueExpression
    • Just delete the space between - AND