{"id":70273,"date":"2005-03-09T14:59:00","date_gmt":"2005-03-09T14:59:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2005\/03\/09\/how-can-i-determine-which-version-of-internet-explorer-is-installed-on-a-computer\/"},"modified":"2005-03-09T14:59:00","modified_gmt":"2005-03-09T14:59:00","slug":"how-can-i-determine-which-version-of-internet-explorer-is-installed-on-a-computer","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/how-can-i-determine-which-version-of-internet-explorer-is-installed-on-a-computer\/","title":{"rendered":"How Can I Determine Which Version of Internet Explorer is Installed on a Computer?"},"content":{"rendered":"<p><IMG class=\"nearGraphic\" title=\"Hey, Scripting Guy! Question\" border=\"0\" alt=\"Hey, Scripting Guy! Question\" align=\"left\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/q-for-powertip.jpg\" width=\"34\" height=\"34\"> \n<P>Hey, Scripting Guy! How can I determine which version of Internet Explorer is installed on a computer?<BR><BR>&#8212; MG<\/P><IMG border=\"0\" alt=\"Spacer\" src=\"https:\/\/devblogs.microsoft.com\/scripting\/wp-content\/uploads\/sites\/29\/2019\/05\/spacer.gif\" width=\"5\" height=\"5\"><IMG class=\"nearGraphic\" title=\"Hey, Scripting Guy! Answer\" border=\"0\" alt=\"Hey, Scripting Guy! Answer\" align=\"left\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/a-for-powertip.jpg\" width=\"34\" height=\"34\"><A href=\"http:\/\/go.microsoft.com\/fwlink\/?linkid=68779&amp;clcid=0x409\"><IMG class=\"farGraphic\" title=\"Script Center\" border=\"0\" alt=\"Script Center\" align=\"right\" src=\"http:\/\/img.microsoft.com\/library\/media\/1033\/technet\/images\/scriptcenter\/ad.jpg\" width=\"120\" height=\"288\"><\/A> \n<P>Hey, MG. Probably the best (and definitely the easiest) way to do this is to use WMI; after all, using WMI makes it as easy to get this information from remote computers as it is to get it from the local machine. Here\u2019s a sample script that returns version information for Internet Explorer and &#8211; as an added bonus &#8211; returns the Product ID and the encryption level of Internet Explorer as well:<\/P><PRE class=\"codeSample\">strComputer = &#8220;.&#8221;\nSet objWMIService = GetObject(&#8220;winmgmts:\\\\&#8221; &amp; strComputer &amp; _\n    &#8220;\\root\\cimv2\\Applications\\MicrosoftIE&#8221;)<\/p>\n<p>Set colIESettings = objWMIService.ExecQuery _\n    (&#8220;Select * from MicrosoftIE_Summary&#8221;)<\/p>\n<p>For Each strIESetting in colIESettings\n    Wscript.Echo &#8220;Version: &#8221; &amp; strIESetting.Version\n    Wscript.Echo &#8220;Product ID: &#8221; &amp; strIESetting.ProductID\n    Wscript.Echo &#8220;Cipher strength: &#8221; &amp; strIESetting.CipherStrength\nNext\n<\/PRE>\n<P>For the most part this is just a regular old WMI script; the only tricky part lies in connecting to the WMI service. That\u2019s because the class we need to work with &#8211; <B>MicrosoftIE_Summary<\/B> &#8211; happens to live in the <B>root\\cimv2\\Applications\\MicrosoftIE<\/B> namespace. Make sure you spell that out completely; if you specify the root\\cimv2 namespace (which is standard for most WMI scripts) the script will fail with a \u201cClass not found\u201d error.<\/P>\n<P>Beyond that we simply query the <B>MicrosoftIE_Summary<\/B> class and echo back values for the Version, ProductID, and CipherStrength properties.<\/P>\n<P>Although not well-known and hardly publicized, the root\\cimv2\\Applications\\MicrosoftIE namespace dates back to at least Internet Explorer 5.00.2920.0000, which happens to be the version of Internet Explorer that shipped with Windows 2000. If you\u2019re interested in other Internet Explorer values that can be retrieved using the classes found in this namespace, check out the scripts found in this section of the <A href=\"http:\/\/null\/technet\/scriptcenter\/scripts\/desktop\/ie\/default.mspx\"><B>Script Center Script Repository<\/B><\/A>. NOTE: begining with Windows Vista this WMI namespace has been removed.<\/P><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hey, Scripting Guy! How can I determine which version of Internet Explorer is installed on a computer?&#8212; MG Hey, MG. Probably the best (and definitely the easiest) way to do this is to use WMI; after all, using WMI makes it as easy to get this information from remote computers as it is to get [&hellip;]<\/p>\n","protected":false},"author":595,"featured_media":87096,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[16,17,3,5,6],"class_list":["post-70273","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripting","tag-desktop-management","tag-internet-explorer","tag-scripting-guy","tag-vbscript","tag-wmi"],"acf":[],"blog_post_summary":"<p>Hey, Scripting Guy! How can I determine which version of Internet Explorer is installed on a computer?&#8212; MG Hey, MG. Probably the best (and definitely the easiest) way to do this is to use WMI; after all, using WMI makes it as easy to get this information from remote computers as it is to get [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/70273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/users\/595"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=70273"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/70273\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media\/87096"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media?parent=70273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=70273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=70273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}