Custom Task question

(imported topic written by Kvetch91)

Hello, I am fairly new to BigFix so I may be totally off on how to go about doing this but I want to use BigFix to pull the specific bios version from my bigfix clients. The registry stores some bios information but it does not store the exact version nor in the format we would like to pull it. MSInfo32’s System Summary displays the bios version in the format I am looking for so I thought I could create a insanely simple BigFix Task to run msinfo32, grep out the bios version then run an analysis reading in the output but I think my code is wrong and was hoping someone could help me out. I am not sure if I am not escaping something properly or the multiple run statements don’t work together or something totally different.

my task is

wait "C:\Program Files\Common Files\Microsoft Shared\MSInfo\msinfo32.exe" /report c:\{computer name}.txt /categories systemsummary
run "find "BIOS Version" c:\{computer name}.txt > c:\bios.txt"

My Analysis is simply

line 1 of file "C:\bios.txt"

If I just run the task without the find statement it runs msinfo32 but when I add the run find statement it doesn’t seem to run the find statement. Anyone know where I am going wrong here?

Thanks

(imported comment written by NoahSalzman)

This variant worked for me:

run cmd.exe /c “find “BIOS Version” c:{computer name}.txt > c:\bios.txt”

I then needed to change the analysis to account for “% encoding” in the file:

concatenation " " of substrings separated by “%09” of (line 4 of file “c:\bios.txt”)

The BIOS Version ended up being on line 4 of my results file.