Jump to content

"internet explorer has restricted this webpage from running scripts "


Recommended Posts

Posted

I've installed some software called "Energy Dashboard" which allows our students to monitor our electricity use-age.

 

It runs via a webpage:

"C:\Program Files\Energy Dashboard\index.html"

 

When it opens there is a script / activex control alert.

 

The students could click and choose "Allow content" and then "Yes".

 

However is there anyway I can push this setting to users via a GPO?

 

Cheers.

Posted
It runs via a webpage:

"C:\Program Files\Energy Dashboard\index.html"

A really easy way to disable the ActiveX warning would be to add the code shown below to the index.html file (and any other HTML file which uses scripts/plug-ins).

 

 

This line needs to be placed between and i.e.

 

[color="red"][/color]


 Energy Dashboard
 






 

Microsoft calls this the "Mark of the Web"...

 

What is the Mark of the Web?

The MOTW is a comment added to the HTML markup for a webpage. When a user opens the webpage from their local machine, Internet Explorer references this comment to determine the security zone in which it should run the page. (Source)

Posted

Another option would be to convert the index.html into a HTML application (a.k.a. HTA). This is also quite easy to do...

 

  1. Open index.html in Notepad.
  2. Copy-and-paste the text shown in red anywhere between the two tags.
  3. Save the file, then rename to index.hta.

 



 Energy Dashboard
 
 
 [color="red"]    APPLICATION      = Yes
   APPLICATIONNAME  = Energy Dashboard
   BORDER           = Thick
   BORDERSTYLE      = Normal
   CAPTION          = Yes
   CONTEXTMENU      = Yes
   ICON             = Dashboard.ico
   ID               = Dashboard
   INNERBORDER      = No
   MAXIMIZEBUTTON   = Yes
   MINIMIZEBUTTON   = Yes
   NAVIGABLE        = Yes
   SCROLL           = No
   SCROLLFLAT       = No
   SELECTION        = No
   SINGLEINSTANCE   = Yes
   SHOWINTASKBAR    = Yes
   SYSMENU          = Yes
   VERSION          = 1.0
   WINDOWSTATE      = Maximize
   >[/color]






 

The Power of Trust: HTAs and Security

As fully trusted applications, HTAs carry out actions that Internet Explorer would never permit in a Web page. The result is an application that runs seamlessly, without interruption.

 

In HTAs, the restrictions against allowing script to manipulate the client machine are lifted. For example, all command codes are supported without scripting limitations (see command id). And HTAs have read/write access to the files and system registry on the client machine. (Source)

Posted

Yet another alternative (and probably the simplest of the lot :) ) would be to run Energy Dashboard via a web server e.g IIS, Apache, TinyWeb, Server2Go, XAMPP etc.

 

If you need to create a proper shortcut to it on your Start Menu (LNK, not URL), just create a shortcut to Internet Explorer and then append the URL to Energy Dashboard.

 

"%ProgramFiles%\Internet Explorer\iexplore.exe" http://YourWebServer/EnergyDashboard/

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...