Custom Software Inventory and Managed Install - Reading Text File
I am trying to create a managed install for a small update that one of our software vendors has released. This update does not increment a file version, registry key, or anything else which would be considered useful for creating a custom software inventory; it does however append a specific string of text to a log file.
It seems that in order to create a custom software inventory to acheive a managed install, I would want to say something like: File X contains String Y.
I understand how to return the contents of the log file using ShellCommandTextReturn, but this only allows me to read it back using a smart label. Every machine that contains that file is returned under that software label, so I cannot effectively manage an install using this method. They would all be skipped becuase they already match the label.
How can I create a custom software label that will search the contents of a text file? Or is there another way to do this with Smart Labels? I could probably script this, but Managed Installs are so much cleaner.
Thanks!
Johann
Answers (0)
Be the first to answer this question
http://www.itninja.com/question/i-want-a-custom-inventory-rule-in-the-k1000-that-will-return-just-the-second-line-of-an-ini-file-is-that-possible#answer-89351 - aragorn.2003 11 years ago
ShellCommandTextReturn(findstr WorkstationType= "%ProgramFiles%\Sentillion\Vergence Authenticator\Authenticator.ini")
in fact the right syntax?
It almost acts as if its returning text, but not actually searching for a specific string. I seem to get either false positives, or nothing at all. - jgrotkier 11 years ago
This isn't my preferred method of doing this because there is room for error if I uninstall the main program during troubleshooting and don't delete the text file, but generally speaking it will work. - jgrotkier 11 years ago