Lookout for the IE Version in the OpsMgr PowerShell Web Browser Widget

1 minute read

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:

image

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:

image

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:

SNAGHTML2364221a

$dataObject = $ScriptContext.CreateInstance("xsd://Microsoft.SystemCenter.Visualization.Component.Library!Microsoft.SystemCenter.Visualization.Component.Library.WebBrowser.Schema/Request")
$dataObject["BaseUrl"]="<a href="http://www.whatbrowser.org/intl/en/"">http://www.whatbrowser.org/intl/en/"</a>

$ScriptContext.ReturnCollection.Add($dataObject)

it simply launches the site http://www.whatbrowser.org/intl/en/

[07/2020]NOTE: whatbrowser.org seems to be offline now. an alternative is http://www.whatbrowser.org

Surprisingly, it shows I’m using IE 7:

SNAGHTML2366636f

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:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION

DWORD value to add:

Microsoft.EnterpriseManagement.Monitoring.Console.exe

Value data:

decimal 11000

image

image

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:

SNAGHTML23710b66

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.

Leave a comment