Script to test for the DefragAnalysis or status of volumes

This script will report the Defrag status of servers.

 
 
 
 
 
(0)
Add to favorites
Storage
5/21/2011
E-mail Twitter del.icio.us Digg Facebook
  • Improper Output
    2 Posts | Last post February 27, 2020
    • I used the script and observed that following property does not have values.
      
      DriveLetter       : 
      FileSystem        : NTFS
      VolumeName        : 
      VolumeSizeGB      : 0
      UsedSpaceGB       : 0
      FreeSpaceGB       : 0
      FreeSpacePercent  : 
      TotalPercentFrag  : 
      DefragRecommended : False
      
    • I would guess this is a permissions issue.
      
      you likely need Admin or elevated session to get this info from WMI.