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:
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answer Chosen by the Author

1
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
Please log in to comment

Community Chosen Answer

1
use

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

Please log in to comment

Answers

0
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

v2nqrC.jpeg

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

Please log in to comment
0
Is there anyway to report only the value and remove the first line called FileSize?
Answered 07/21/2015 by: ctrakarn
Senior Yellow 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)
Please log in to comment
Answer this question or Comment on this question for clarity