Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

IE 11 WMI Java Script 'GetObject' is undefined

$
0
0

I'm using Windows 7 with Internet Explorer 11. I have created a very simple JavaScript function to retrieve client machine information in an ASP.NET Page. I'm using the following code to get the client machine name , it gives me an error.

var objWMIService = GetObject("winmgmts:\\root\\CIMV2");

the above code works in IE 6,7,8 but not in IE 9,10,11.

Error: "GetObject" is undefined. Request help from this forum. If "GetObject" is not supported anymore in IE 11 what is the alternative API.

Any help is appreciated.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>