Good Day

Can anybody help me with a data rule that gets the size and date modified of test.dll found in c:\program files\temp\test.dll? Is it then possible to get a report that gives me this info for all my computers?

0 Comments   [ + ] Show Comments


Please log in to comment

Community Chosen Answer

I believe you are referring to a custom inventory rule.

FileInfoReturn(c:\program files\temp\test.dll,ModifiedDate,DATE)

That will get you the modified date, but I don't know of any way to query file size on a Windows system. The Unix (Mac OS X) FileInfoReturn can return file size, but the Windows attributes are as follows:

attribute on windows can be: Comments, Language , CompanyName, LegalCopyright , FileBuildPart, LegalTrademarks , FileDescription, OriginalFilename , FileMajorPart, PrivateBuild , FileMinorPart, ProductBuildPart , FileName, ProductMajorPart , FilePrivatePart, ProductMinorPart , FileVersion, ProductName , InternalName, ProductPrivatePart , IsDebug, ProductVersion , IsPatclhed, SpecialBuild , IsPreRelease, CreatedDate , IsPrivateBuild, ModifiedDate , IsSpecialBuild, AccessedDate

EDIT: I'd also like to note that you'll have to create a separate custom inventory rule for each attribute you want to query. You cannot pull two file attributes in the same inventory rule.
Answered 04/16/2010 by: airwolf
Tenth Degree Black Belt

  • hi there Airwolf

    how are you doing

    i have created a separate custom inventory rule

    please assist me as i not winning with the fileinforeturn .dll file

    this is what it looks like:

    inventory rule:
    FileInfoReturn(c:\program files\I-Systems\Scanning Client\ISystems.JDGroup.ScanningSolution.DealDocumentationPlugin.dll,ModifiedDate,2011/09/08)

    I am not sure if the inventory rule is correct but any way what i am trying to achieve is to pull a report to see in the .dll file is installed or not in our Kace environment.

    i can see that in the Smart lable contense that it is added as a Custom Field (name Deal Documentation)
    and i can see that it is added to the Tab Reports Custom Field too

    • I haven't worked with the K1000 in almost a year, so I apologize if I'm a bit rusty. At first glance, it appears your rule isn't written properly. The last parameter should literally be the word 'DATE' not a specific date - it's the type parameter to tell the function to return the ModifiedDate in DATE format. You should be able to report based on machines that have a valid value returned by this function.
  • hi airwolf

    i tried it and it does not work


    The report does how ever pull the report but giving me an ip address,name but not giving me a date

    any other way i can pull the dll file?

    • I don't know if your rule was written incorrectly or if you copy/pasted wrong, but you're missing the first portion of the function in what you pasted. As for the report, you have to specify which fields you want to display. Your results need to be restricted within the query. Are you using the reporting wizard or did you write your own SQL?
  • hi Airwolf

    thanks for getting back to me

    i am using the wizard
    • You will most likely have to write a custom SQL rule - unless major improvements to the wizard have been made lately. I'd assist with writing the SQL, but I don't have access to a K1000 database at the moment to view the needed tables.
  • FileInfoReturn(c:\programfiles\I-systems\ScanningClient\ISystems.JDGroup.ScanningSolution.DealDocumentationPlugin.dll,ModifiedDate,DATE)

    here is the full portion

Please log in to comment
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


Thank you for the feedback. If anyone know of a way to get the file size please assist.
Answered 04/16/2010 by: anthonyw
Orange Senior Belt

Please log in to comment
Answer this question or Comment on this question for clarity