You can perform this using the following command without the double. I am having a problem during the process of Uninstalling programs when using WMIC command. This next process also come in handy if you want to uninstall program using the command line interface. (This will create a file in the current directory and name it programs.txt which will contain a list of all your applications). I used this tool to test the query outside of Autoit and it works fine. C:\>wmic product get name > programs.txt. I recently added a new eventcode 540 to track network logons (mapped drives etc.) However, this returns a lot of machine based junk and user names I want to exclude (e.g., any user name with a $ in the name computername$, etc.) Well the query is driving me crazy since the query does not seem to work correctly within Autoit but does work outside of Autoit. therefore if you have a list of computers stored in a text file you can uninstall anything you want across a domain in one. The following will uninstall all versions of java on a remote computer: wmic /node: computername product where name like ‘Java call uninstall.
and returns the most prominent logged in user name. This command loads the Windows Management Instrumentation Command-line (WMIC) tool.Now you need to see which apps are identified by WMIC so that you can remove them from the Command Prompt.To do that, type the command 'product get name' without the quotation marks and press Enter on the keyboard. wmic product where name like ‘Java call uninstall. So I have this utility that scrapes the security logs looking for certain eventids, etc.