How to determine installed version of EMET via script?

Hi all,
I was not able to find a easy way to determine installed verison of EMET via script. If you can guide me in the right direction, this would help a lot.
Many thanks
Sam

This is probably not the right forum for scripting questions and you didn't specify which script you (want to) use... Below you can find some examples...
If you use VBscript you could use WMI and query the class Win32_Product:
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
Set colSoftware = objWMIService.ExecQuery _
("Select * from Win32_Product where Name like '%EMET%'")
For Each objSoftware in colSoftware
Wscript.Echo "Name: " & objSoftware.Name
Wscript.Echo "Version: " & objSoftware.Version
Next
This method is not advisable because the class isn't optimized for queries and therefore the query takes a long time!
You can also use the Windows Installer object:
Option Explicit
' Connect to Windows Installer object
Dim installer
Set installer = Wscript.CreateObject("WindowsInstaller.Installer")
Dim product, products
Set products = installer.Products
For Each product In products
if instr(1,installer.ProductInfo(product, "InstalledProductName"), "EMET", vbTextCompare) > 0 AND instr(1,installer.ProductInfo(product, "Publisher"), "Microsoft", vbTextCompare) > 0 then
Wscript.Echo installer.ProductInfo(product, "InstalledProductName")
Wscript.Echo installer.ProductInfo(product, "VersionString")
End If
Next
Set products = Nothing
Set installer = Nothing
Wscript.Quit 0
This method enumerates all the products but be aware that you should also check the installstate because the installstate of a product also can be advertised.
You can also use powershell to enumerate the uninstall registry keys but you have take into account that the results may be different on a 64-bit Windows and the bitness of the powershell proces:
gci "hklm:\software\microsoft\windows\currentversion\uninstall" | foreach { gp $_.PSPath } | select DisplayVersion,DisplayName | where { $_.DisplayName -match "^EMET*" }
You can also install and use the
Windows Installer PowerShell Module and use this command:
get-msiproductinfo | where { $_.Name -like '*EMET*' } | select ProductName,ProductVersion  | format-list
On the internet you can find a lot of information about your question. For instance I found these pages:
http://blogs.technet.com/b/heyscriptingguy/archive/2013/11/15/use-powershell-to-find-installed-software.aspx
http://blogs.technet.com/b/alexshev/archive/2008/06/30/from-msi-to-wix-part-17-windows-installer-automation-interface-part-2.aspx
W. Spu

Similar Messages

  • How to determine installed management studio is client or server

    How to determine installed management studio is client or server
    when I see in help it says 
    version 10.50.1600.1
    Neil

    Blog/thread:
    7 things to check to resolve  “A network-related or instance-specific error occurred while establishing a connection to SQL Server…” 
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/0628296e-939a-4700-b498-1c3c9ce90597/a-networkrelated-or-instancespecific-error-occurred-while-establishing-a-connection-to-sql-server?forum=sqlsecurity
    http://blogs.msdn.com/b/sql_protocols/archive/2007/05/13/sql-network-interfaces-error-26-error-locating-server-instance-specified.aspx
    http://stackoverflow.com/questions/18060667/connect-to-server-a-network-related-or-instance-specific-error
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • How to determine the version of Adobe Reader X I have

    How to determine the version of Adobe Reader X, I have

    I am in the software, where can I find it?
    On Tue, Jan 27, 2015 at 9:59 AM, Sara.Forsberg <[email protected]>

  • How do I install version 12 over version 6

    how do I install version 12 over version 6

    I got a great deal on the misssing manual book on version 12
    I hate to get rid of version 6 and the book that taught me so much about elements
    Barbara B is awesome, don't know how else to thank her
    looking forward to the arrival of new photoshope elements 12 and the book on the way now

  • How can i install version 3.6.16 on my mobile device. that is the supported version for my work website

    how can i install version 3.6.16 or a 3 version of firefox on my mobile device. it is required for my work. i have an android system. if there is currently not an option, can one be created? thanks!

    There is no version of Firefox mobile for 3.6. You can try using the Phony extension and in the preferences set the User Agent setting to 'Desktop Firefox'.
    https://addons.mozilla.org/en-US/mobile/addon/phony/

  • How do I install version 5 or 6???

    HOW DO I INSTALL VERSION 5 OR 6?

    Version 5 and 6 do not get security updates so using them would normally not be a good idea. Does the tech guy have a special reason for saying this? Otherwise you really should use version 7 like ''Swarnava'' suggested.

  • How to find installed versions in R12 on Windows

    how to find installed versions in R1213 on Windows 2008 server

    Hi;
    how to find installed versions in R1213 on Windows 2008 serverWhat you mean? You can install R12.1 than rise R12.1.3
    Follow below notes:
    How to check if certain Oracle Applications product/module is implemented? [ID 443699.1]
    How to check, which EBS Techstack Patchsets have been applied on 11i or R12 ? [ID 390864.1]
    Regard
    Helios

  • 5s How to determine which version of operating system is currently installed

    How can I determine which version of the operating system is currently installed in my 5s without having to go to iTunes using my PC?

    Tap Settings > General > About.

  • How to determine full version of latest adobe reader

    Hi,
    How can I determine full version of latest Adobe Reader without installing Adobe Reader?
    I mean I need to know 4th digit of version, it is the most important for me.
    Adobe Shockwave and Flashdownload pages provide such informations via JSON from
    HTTP request.
    Reader download website shows me only 3 digits 10.1.3 and I need to read 10.1.3.23
    to automate my security checker.
    Thanks in advance for reply.
    David

    daviddavid3 wrote:
    No it's not true. latest version is 10.1.3.23.
    Latest digit is probably security patch.
    The latest digit is the build number.  This may be different for different modules; you may find DLLs that have a higher build number than AcroRd32.exe
    If there is a new security release, it will be identified by the first three digits.

  • How to Determine .INDD version?

    Hi,
       Can someone give me information on how to determine version number of .INDD file using JScript or C# using SDK?
    Thanks
    Vish

    Hi. Get a connection and do this:
    DatabaseMetaData dm = conn.getMetaData();
    System.out.println( dm.getDriverVersion() );
    This info is not available via the console.
    Joe

  • How to determine ACR version in Lightroom 5?

    I have Lightroom version 5.  How do I determine what version of Adobe Camera Raw is installed with it?  I want to get a new lens so I'm interested in checking compatibility.  Thanks.

    In LR, do Help / About Adobe Photoshop Lightroom x.x.x to see what x.x.x version of LR you’re running.
    The LR 5.7.1 update, which is the latest one, was rushed out to fix a problem with NX processing, as well as adding Sony Alpha 7 II support.  I believe the LR-has-an-update detection does not see LR 5.7.1 as a new update if you have LR 5.7, at least with the serial-number-activated version.  You can always download the update from the Adobe Updates page:
    http://www.adobe.com/downloads/updates
    I myself have the CC-licensed version of LR 5 and I did get an Install button next to Lightroom in my CC Apps list, indicating there was an update, although normally there would be an Update button not an Install button so the CC deployment was slightly off, as well.

  • How to Determine What Version of JDK I Have?

    Hi,
    How do I determine what version of the JDK or SDK is installed on our server?
    Thanks,
    Ken

    There isn't any readme or license file in the JDK folder. Our JDK is not direct from Sun, it came with WebSphere App Server, so maybe IBM left out such files. Anyway, the "java -fullversion" command works. Thanks!
    Ken

  • Determine installed version of iPhone apps?

    Is there a way to determine the currently-installed version of my iPhone apps? I am just curious because a number of them have released updated versions, and I'd like to figure out what I have now before upgrading. I'm on iOS 4.3.5.

    No way to do that on the phone itself, but you can do so in iTunes: right-click any app in your iTunes library, select get info.

  • How to determine the version of xmlparserv2.jar?

    Hi,
    Is there any way I can determine the version of an
    xmlparserv2.jar file?
    I am using XML Parser V2 (xmlparserv2.jar) with the following
    file size: 1,086,234 bytes.
    This was supplied with JDeveloper 3.1 but I have no idea what
    version is it? Any help on this will be appreciated.
    TIA,
    -Piyush

    the class oraxml does not exist in this version of the jar!
    however i do see an entry like: xmlparser_2.0.2.6_production
    when i open the jar file in winzip!
    i have cross verfied with other xmlparserv2 files (diff file
    sizes) and this seems to be it.
    thanks for the suggestion.
    regards,
    -Piyush

  • How to determine the version of Forms (Old version)

    Can anyone help me determine the version of forms running on a Unix server, I believe it is either 2.3 or 3.0?
    Thanks

    ls $ORACLE_HOME/bin|grep formsIf there file sqlforms30 is in result of command , then run:
    sqlforms30 and in appeared screen you can see version. As sample:
    SQL*Forms Design: Release 3.0.16.12.9
    If there is no any sqlforms30 in directory $ORACLE_HOME/bin your version is not 3.0 :)))
    In this case run file with name forms and u'll find out the answer for your question.
    Best regards, Natalia

Maybe you are looking for

  • My iMac will not play certain DVDs after upgrading to OS X Mavericks

    I bought my iMac about 2 years ago, it worked fine, no problems until a few months ago, i upgraded to OS X Mavericks because it came up on app store updates and it was free so i upgraded. Ever since then it is very picky about which DVDs it plays, so

  • Got  ABAP dump

    Hi All Whenever I am trying to schedule the infopackage I am getting the following error. My data target is ODS. Please do the needful. Runtime Errors         MESSAGE_TYPE_X                                                              Date and Time  

  • Hide password in url?

    We are parsing connection-information to Discoverer so that the user does not have to log in themselves. But in the url you can se username, password and database name. How do I hide the connect string in the URL, or at least show the password as ***

  • Pagebreak causing an extra blank page

    Hello everyone, I have modified a standard XML template in GL. I am using pagebreak to break my data per journals. The problem is, my XML output is displaying a blank page at the last page. This is my tag for the pagebreak: <xsl:if xdofo:ctx="inblock

  • Reverb for SBLive! WaveStu

    I have Sound Blaster Li've! version . (but my online manual is called SBLi've5.pdf) My Creative WaveStudio is version 4.2.07. Wave Studio?s Tasks / Echo works fine, but when I try to apply the DirectX Edirol VSC (virtual sound canvas) reverb, a pop-u