[Solved] VBScript using WMI to find out SQL Server version
Based on the code in the first Google search result here: Dim WMI, Col, Prod, Q Set WMI = GetObject(“WinMgmts:”) Q = “Select * FROM Win32_Product WHERE Vendor = ” & _ “‘Microsoft Corporation’ AND Name LIKE ‘SQL Server%Database Engine Services'” Set Col = WMI.ExecQuery(Q) For Each Prod in Col if left(Prod.version, 3) = “11.” … Read more