Good Morning All,
I have been looking for a tutorial on creating a batch file to uninstall a program and remove any registry keys associated with it.
For example, we want to uninstall Symantec Endpoint Protection v. 12. I used their suggested approach which is to run msiexec.exe /q/x <product code> from the command line after manually finding the product code in the regedit. I want to know how to query the registry for the product code (which is under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall), because we have it on 150 workstations and I have only looked at about 25 machines and there are 6 different product uninstall codes so far.
I want to query the product code, then run the cmd msiexec.exe /q/x <product code> to uninstall the product.
Can anyone help with this scenario or point me to a good tutorial of how to use reg query?