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