/build/static/layout/Breadcrumb_cap_w.png

Capture file size in Kace WMI Bloat issues.

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.

0 Comments   [ + ] Show comments

Answers (4)

Answer Summary:
Posted by: SMal.tmcc 9 years ago
Red Belt
1
use

shellcommandtextreturn(c:\windows\system32\wbem\WMIC.exe datafile where name='C:\\windows\\system32\\wbem\\repository\\objects.data' get filesize)
Posted by: SMal.tmcc 9 years ago
Red Belt
1

Top Answer

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)

Comments:
  • 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. - ctrakarn 9 years ago
    • 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 - SMal.tmcc 9 years ago
Posted by: SMal.tmcc 9 years ago
Red Belt
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)

Posted by: ctrakarn 9 years ago
Orange Belt
0
Is there anyway to report only the value and remove the first line called FileSize?

Comments:
  • 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) - SMal.tmcc 9 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
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