Pull IE Version using Get-CIMInstance?

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of Jarom Later Jarom Later 2 years, 3 months ago.

  • Author
    Posts
  • #18563
    Profile photo of Jarom Later
    Jarom Later
    Participant

    Is it possible to get the IE Version with Get-CIMInstance, or does anyone know another elegant way to pull this information from a remote computer? Thanks!

  • #18565
    Profile photo of Richard Siddaway
    Richard Siddaway
    Moderator

    You can find the product version like this

    (Get-ChildItem 'C:\Program Files\Internet Explorer\iexplore.exe').VersionInfo.ProductVersion

    Wrap it in Invoke-Command for remote machines

    Alternatively using CIM

    Get-CimInstance -ClassName CIM_DataFile -Filter "Name = 'C:\\Program Files\\Internet Explorer\\iexplore.exe'" | select -ExpandProperty Version

    Add the computername or CIMsession for a remote machine

    After checking the CIM version gives a more accurate result

  • #18567
    Profile photo of Jarom Later
    Jarom Later
    Participant

    Thank you, Richard!

You must be logged in to reply to this topic.