I'm trying to do something here that is eluding me...
Hi,
The export you've pasted seems corrupt, however I'm getting the sense that the CMD you're running isn't happening. How is it being written to c:\kaseya?
I'd be happy to provide more help if you could attach the XML file, and even better the CMD file as well?
Hello csoska,
How about a single Powershell step (ExecutePowerShell) as below?
(& "edd.exe" | Out-String -Stream | sls -Pattern "(PGP)|(TrueCrypt)").Matches.Count
And then a step where you check if the variable is greater than 0?
This way you don't have even to output to file, process the file etc... all done in one quick step in
memory.
Best Regards
I don't see a way to attach anything, but the .CMD does execute exactly as intended.The .CMD and the application are distributed via Kaseya separately.
The EDD.exe application is very peculiar - if it is not executed in an administrative command prompt some functionality is lost. I also want to generate the text file for some of the other information in creates
Click on Use rich formatting then select the Options tab. You should see a file attachment option.
You can execute edd.exe as Administrator in Powershell as much as the normal Command.
If you really want to output the result of edd.exe to a file instead of doing all in memory as I was suggesting previously you can use this one:
(& 'edd.exe' > d:\youroutputfile.txt) ; (sls -Path 'd:\youroutputfile.txt' -Pattern '(PGP)|(TrueCrypt)').Matches.Count
Read as usual the #global:psresult# and check if it's greater than 0 with a kaseya IF CheckVariable step.