Hello,
I am currently working on doing a registry search for mulitple versions of a software using command line. I have the .bat file working but I am trying to find a way to clean it up so that, instead of showing error when a certain version is not found. It will only show the version that is showing up in the registry. Again this is all done thru remote connections and running scripts and I am trying to make it a bit more readable then dealing with 6 errors and then the information I want. Any help would be greatly appreciated. Below is the current .bat that I have working.
----
REG Query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC7 6BA8-7AD7-1033-7B44-A93000000001} /v DisplayName
REG Query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC7 6BA8-7AD7-1033-7B44-A92000000001} /v DisplayName
REG Query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC7 6BA8-7AD7-1033-7B44-A91000000001} /v DisplayName
REG Query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC7 6BA8-7AD7-1033-7B44-A80000000002} /v DisplayName
REG Query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC7 6BA8-7AD7-1033-7B44-A81000000002} /v DisplayName
REG Query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC7 6BA8-7AD7-1033-7B44-A81000000003} /v DisplayName"
As you can tell I am looking for the versions on a specific software load. But I have 20000 computers to do this on and instead of looking a all the errors in the script logs, I just want to see which value will actually show up. I have tried getting the FOR and IF statements but with no luck. Hopefully you all can help.
Raven