On K1000 version 5.5, I have a custom software inventory field called FirefoxChannel that picks up a text line from a Firefox .INI file. In a Kscript, I want to see if that custom software inventory field contains a particular string. In other words, FirefoxChannel contains (or does not contain) "-esr".

I tried to use Windows' FindStr for this, but the Kscript does not appear to be checking its returned errorlevel correctly. (You'd think that, after all these years, this would have been fixed.)

Is there another way to check the contents of a custom software inventory field from a Kscript?                             Sande
1 Comment   [ + ] Show Comment

Comments

  • I appreciate the comments, but for various reasons, I have to do it this way, not some other way.
Please log in to comment

Answers

0
Rather than have the KScript check the value of the custom inventory field I would probably create a smart label that does that and then target the script at the smart label. 
Answered 08/13/2014 by: chucksteel
Red Belt

Please log in to comment
0
create a report on the custom filed and use contains -esr in the filter
Answered 08/13/2014 by: SMal.tmcc
Red Belt

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

Share