I have a script which is run from a service which is built using C++ and is not built using unicode. This program runs the script below and strangely, the output from the scrip
wmic qfe list | find /v "" >> c:\log.txt
wmic qfe list | findstr "^" >> c:\log.txt
Pipe the output of the wmic command to a find or findstr command (you can also use sort if you don't have problems with the order, or more if your output has less than 65535 lines) before redirecting the output to the file.