/build/static/layout/Breadcrumb_cap_w.png

I could use some help creating a Custom inventory rule to get lastmodified date on a specific file

Here's where I'm at:
WMIC FSDIR get lastmodified, Name='C:\\file.ini'

The error is "Invalid GET Expression."

That doesn't seem to work...  I have a feeling it's the order I'm trying to do it in.  I haven't tried it in KACE yet, because I get an error when I try it in the command line manually.  Eventually I want to drop it into a:

ShellCommandTextReturn()

Any help would be greatly appreciated.
Thanks!
awingren


0 Comments   [ + ] Show comments

Answers (1)

Answer Summary:
Posted by: awingren 10 years ago
8th Degree Black Belt
0

I was overthinking it!  I figured it out:

FileInfoReturn(C:\file.ini, modification_time, DATE)

 
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