Pull IE Version using Get-CIMInstance?

Welcome Forums General PowerShell Q&A Pull IE Version using Get-CIMInstance?

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

 
Participant
4 years, 3 months ago.

  • Author
    Posts
  • #18563

    Participant
    Points: 0
    Rank: Member

    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

    Participant
    Points: 0
    Rank: Member

    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

    Participant
    Points: 0
    Rank: Member

    Thank you, Richard!

The topic ‘Pull IE Version using Get-CIMInstance?’ is closed to new replies.