/build/static/layout/Breadcrumb_cap_w.png

in Kscript, how to check contents of a custom software inventory field

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
  • I appreciate the comments, but for various reasons, I have to do it this way, not some other way. - snissen 10 years ago

Answers (2)

Posted by: chucksteel 10 years ago
Red Belt
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. 
Posted by: SMal.tmcc 10 years ago
Red Belt
0
create a report on the custom filed and use contains -esr in the filter

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
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