gwmi -cn $computer -namespace “root\CIMV2\Applications\MicrosoftIE”-2008

This topic contains 1 reply, has 2 voices, and was last updated by  Mike F Robbins 4 years, 1 month ago.

  • Author
  • #15024


    It has been removed from Post Winsows 2003 & not working 2008 onwards.
    (gwmi -cn $computer -namespace “root\CIMV2\Applications\MicrosoftIE” -query “select version from MicrosoftIE_Summary”).Version

    Any alternate for 2008?

  • #15059

    Mike F Robbins

    As far as I'm aware, there's not an alternate WMI Namespace or Class to obtain that information from. You could retrieve the information from the registry:

    Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Internet Explorer' -Name svcVersion

    You can use that command with PowerShell remoting to retrieve the information from a remote machine:

    Invoke-Command -ComputerName 'RemoteHost' -ScriptBlock {(Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Internet Explorer').svcVersion}

    If your set on using WMI (if PowerShell remoting is not enabled), you could do something like this and check the actual file version:

    Get-WmiObject -ComputerName 'RemoteHost' -Class CIM_DataFile -Filter "Path='\\program files\\internet explorer\\' and Filename='iexplore' and Extension='exe'"

You must be logged in to reply to this topic.