Systems Management Question

Capture file size in Kace WMI Bloat issues.

07/21/2015 1435 views
I would like to use Kace to capture the size of this file located in C:\windows\system32\wbem\repository\object.data

I have a Custom Inventory Rule below.

FileInfoReturn(C:\Windows\System32\wbem\Repository, Objects.Data, Number) , but it does not capture the data i hoping for.  

This file after imaging is around 50MB.  Anything over 200MB is usually suspect and if over 500MB boot time is often slow. Is this the correct command to capture the size of this file in Kace?

Thanks in Advance.
Answer Summary:
0 Comments   [ + ] Show comments


Answer Chosen by the Author

If you come to the Dell World Kace conference this fall in Austin you owe me a beer for this one.

shellcommandtextreturn(@echo off & FOR /f "tokens=2 delims==" %g IN ('c:\windows\system32\wbem\WMIC.exe datafile where "name='C:\\windows\\system32\\wbem\\repository\\objects.data'" get filesize /value') DO @echo %g)
Answered 07/22/2015 by: SMal.tmcc
Red Belt

  • You are too awesome! Im not sure if i will be able to go to Dell World, but if you are ever in Seattle, let me know. Thanks a bunch. This is going to be very helpful for my team to gauge the health of our computers.
    • I have friends in Federal Way and Bellevue that we visit usually around Thanksgiving, I will let you know when I am up in the area, send me your email smal.tmcc@gmail.com

Community Chosen Answer


shellcommandtextreturn(c:\windows\system32\wbem\WMIC.exe datafile where name='C:\\windows\\system32\\wbem\\repository\\objects.data' get filesize)
Answered 07/21/2015 by: SMal.tmcc
Red Belt

All Answers

that will never work. if you open the help menu you see that is not a supported attribute in windows.  Look at the argument notes for attributes that work


here is an example of how fileinforeturn would be written
FileInfoReturn(C:\windows\system32\wbem\repository\objects.data, createddate, date)

Answered 07/21/2015 by: SMal.tmcc
Red Belt

Is there anyway to report only the value and remove the first line called FileSize?
Answered 07/21/2015 by: ctrakarn
Orange Belt

  • yes it will take me a few to get that code, will post that when i have it worked out it involves creating a for loop. (for /f "tokens=* skip=1)
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ