Does anyone know how to use WMI to get the Edition of an SQL Server installation (do not care about the version) in VBScript?
I have tried using the registry (but that requires you to know the instance name and the version of the SQL Server.
I have tried using an SQL Query (but that requires you to have permissions upon the database and my process is using the LOCAL user, with no permissions on the SQL Server DBMS).
So, I am left with using WQL to query WMI.
I guess that I need to:
1) query a WMI object (which one) to get the instance names. 2) Then, for each instance, query another object and get the Edition out of it.
I have looked through the Microsoft documentation and I cannot find the objects to use.
Can anyone help?
QuietLeni