KACE Product Support Question

Custom invetory rule question

04/06/2015 1232 views

I am trying to create a rule that reads a txt file on workstations and if it finds the matching words so I can create a report of workstations that match. The cusomt inventory rule that I have in place is

ShellCommandTextReturn(cmd /c type c:\Folder\file.txt | find "text")

I am not returning any results, can someone point me in the right direction


0 Comments   [ + ] Show comments


  • This content is currently hidden from public view.
    Reason: Removed by member request For more information, visit our FAQ's.

All Answers

I use this one to search the hosts files on machines for anyline that does not begin with a #

ShellCommandTextReturn(cmd /c echo off & for %g in (C:\Windows\System32\drivers\etc\hosts) do (findstr /b /v /c:"#" %g))

this one reads the bios text file I created with the CCTK to list the bootorder on machines

ShellCommandTextReturn(cmd /c @echo off && for %g in (c:\programdata\dell\kace\user\bios.txt) do (findstr /b /c:"bootorder" %g))
Answered 04/06/2015 by: SMal.tmcc
Red Belt


thank you for the help, I have been playing with this all day and not been able to get it to work properly.

ShellCommandTextReturn(cmd /c type C:\celerant\RMS6\celMainlog.txt findstr /I "port=8601")

 I have also tried the examples given but not been able to get it to pull the information. if I run this command via command line it finds the information I am looking for. Thanks for the help

Answered 04/06/2015 by: joshuaer
Senior Yellow Belt

  • can you email that file with the entry and I will give you the exact verbiage to use
    • thank you for your help, I have emailed you the file
  • (cmd /c @echo off && for %g in (celMainLog.txt) do (findstr /c:"PORT=8580" %g))

Don't be a Stranger!

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

Sign up! or login


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