The download here details the pros and cons of different
methods of getting installed software. Sample scripts
are included:
http://www.jsware.net/jsware/scripts.php5#enumsoft
I don't deal with remote PCs at all, but there is a WMI
script in the download. You should be able to adapt that.
(This assumes that SQL Server installs via MSI file. WMI
cannot return installed software info. per se. It only sees
MSI-installed software.)
|
| I've got a few hundred Windows servers to check for which version of
| SQL Server client is installed. They have SQL Server client version
| 2005, 2008, or both. I typically use a VBScript to check servers
| remotely for installed versions of programs, usually using the
| registry.
|
| I've done some checking and found out that I cannot use the registry
| to check for SQL, due to inconsistencies; and that using WMI is the
| preferred method.
|
| I've searched high and low and cannot find a WMI script which does
| this. Does anyone have a VBScript that uses WMI to get the SQL Server
| client version on a remote server?
|
| Any help would be greatly appreciated. Thanks!
|
| - Dave