Free Space
Log In or Register to download the BES file, and more.

0 Votes

Description

Will display the drive letter and free space in MB of all Fixed Disks. It will exclude CDROM, Network, Removable and other types.

Property Details

ID2994523
StatusProduction - Fully Tested and Ready for Production
TitleFree Space
DomainBESC
Keywordsfree space fixed logical disk
Added by on 6/3/2013 1:06:13 PM
Last Modified by on 6/4/2013 5:53:30 AM
Counters 4746 Views / 62 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Properties

Free Space
Period Every Report
 
  * Results in a true/false
Show indented relevance
((if property "Description" of it as string contains "Local Fixed Disk" then (substring after "=" of (property "DeviceID" of it as string) & ", " & (substring after "=" of ((property "FreeSpace" of it as string)) as integer / 1024 / 1024 ) as string & "MB" ) else nothing) of select objects ("DeviceID,Description,FreeSpace from win32_logicaldisk") of wmi)

Relevance

isWindows (Relevance 1172)
Used in 1097 fixlets and 523 analyses   * Results in a true/false
Show indented relevance
windows of operating system
Used in 2 fixlets and 23 analyses   * Results in a true/false
Show indented relevance
exists wmi

Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!
harish -
hello mates, i am trying the same report for AIX & Linux OS ,Can any one help here.
harish -
hello mates, i am trying the same report for AIX & Linux OS ,Can any one help here.
jgstew -
This is also related: http://bigfix.me/cdb/analysis/2994527
jgstew -
I had a very similar thing occur as well. I had users report that windows was telling them that their system was running out of free space. It turned out that a program had a bug that created temp files that were many GBs, in one instance up to 40GBs. I also created this installer for that reason: http://bigfix.me/cdb/fixlet/2478
sinucus -
Nice, I needed to use this because we had a system report back "Limited Space" and it shouldn't have. We discovered that the drive had been partitioned incorrectly and that most of the space had gone to the wrong drive. This analysis reported that back. I'll be sure to use the non wmi version now.
jgstew -
(name of it & " - Size: " & ((total space of it /(1024*1024*1024)) as string & " GB") & ", Used:(" & (((total space of it - free space of it)*100/(total space of it)) as string) & ") " & (((total space of it - free space of it) /(1024*1024*1024)) as string & " GB") & ", Free:(" & (((free space of it)*100/(total space of it)) as string) & ") "& ((free space of it /(1024*1024*1024)) as string & " GB")) of drives whose(exists name of it AND exists free space of it AND type of it = "DRIVE_FIXED")
jgstew -
Yes, I did notice that. I created a statement to look at the free space of the system drive previously, but I think this one is more helpful since it will list all of the disks. Thanks for the ideas.
jgstew -
(name of it & ", " & ((free space of it /(1024*1024)) as string & "MB")) of drives whose(exists name of it AND exists free space of it AND type of it = "DRIVE_FIXED")
sinucus -
Yes, much better to use native than wmi. It does appear that your most current line produces the same output as my WMI. Thanks... The first one bombs out if you have multiple drives.
jgstew -
(name of it & ", " & ((free space of it /(1024*1024)) as string & "MB")) of drives whose(exists name of it AND exists free space of it)
jgstew -
The commented statement is equivalent but native and does not rely on WMI in the query which should make it faster to execute.
jgstew -
(name of it & ", " & ((free space of it /(1024*1024)) as string & "MB")) of drives