Last night, while I was working on my newly created Google Map Dashboard in OpsMgr, I kept getting script errors from the PowerShell Web Browser widget used for Google Maps:
After some research online, some people suggests this is because the latest Google Maps only supports IE version 8 and later.
I was getting this error on Windows 8.1 (With Update) and Windows Server 2012 R2 (With Update). the IE version is 11:
Long story short, in the end, I found the issue from couple of blog posts.
In my lab, when PowerShell Web Browser widgets opens a page, it enumerates IE 7. To prove this, I created a dashboard with just 1 Cell and created a PowerShell Web Browser widget with the script below:
$dataObject = $ScriptContext.CreateInstance("xsd://Microsoft.SystemCenter.Visualization.Component.Library!Microsoft.SystemCenter.Visualization.Component.Library.WebBrowser.Schema/Request")
it simply launches the site http://www.whatbrowser.org/intl/en/
Surprisingly, it shows I’m using IE 7:
To fix the issue, I had to add a registry key value to enforce OpsMgr 2012 console to use IE 11 (as documented in MSDN: http://msdn.microsoft.com/en-us/library/ie/ee330730(v=vs.85).aspx).
Reg Key Path:
DWORD value to add:
After the registry modification, simply close and re-open the OpsMgr operational console, open the dashboard, the problem was resolved and whatbrowser.org shows I’m using IE 11:
I’m guessing this could be a common issue when using the PowerShell Web Browser widget to open a site that does not support earlier versions of IE. If this is the case, this registry modification will need to be implemented to all computers running OpsMgr 2012 consoles and wanting to use the dashboard.