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

Welcome Forums General PowerShell Q&A gwmi -cn $computer -namespace “root\CIMV2\Applications\MicrosoftIE”-2008

This topic contains 1 reply, has 2 voices, and was last updated by

5 years, 3 months ago.

  • Author
  • #15024

    Topics: 23
    Replies: 26
    Points: 0
    Rank: Member

    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

    Topics: 2
    Replies: 79
    Points: 53
    Rank: Member

    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'"

The topic ‘gwmi -cn $computer -namespace “root\CIMV2\Applications\MicrosoftIE”-2008’ is closed to new replies.