PowerShell: CSV - Disk Space Report - Excel

AbstractMonitoring disk space utilization of server(s) is critical and important job for any administrator. Keeping things organized might improve application availability and server availability. Being a database administrator for 10 years, I have faced and handled/managed lot o

 
 
 
 
 
(0)
859 times
Add to favorites
9/22/2016
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • i got an error on some of the computers -- attempted to divide by zero. But on some computers, I got results. No admin rights?
    1 Posts | Last post August 17, 2017
    • Attempted to divide by zero.
      At C:\Temp\DiskSpaceReport_WithOut_Credential.ps1:138 char:62
      +     $Sheet.Cells.Item($row,7)= ("{0:P}" -f ($disk.FreeSpace / <<<<  $disk.Size)) 
          + CategoryInfo          : NotSpecified: (:) [], RuntimeException
          + FullyQualifiedErrorId : RuntimeException
  • $range.style
    1 Posts | Last post July 31, 2017
    • 找不到“Style”的重载,参数计数为“1”
      所在位置 行:70 字符: 1
      + $range.Style = 'Title'
      + ~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : NotSpecified: (:) [], SetValueInvocationException
          + FullyQualifiedErrorId : RuntimeException