+ Post New Thread
Results 1 to 7 of 7
Windows Thread, "internet explorer has restricted this webpage from running scripts " in Technical; I've installed some software called "Energy Dashboard" which allows our students to monitor our electricity use-age. It runs via a ...
  1. #1
    kennysarmy's Avatar
    Join Date
    Oct 2005
    Location
    UK
    Posts
    1,286
    Thank Post
    80
    Thanked 45 Times in 31 Posts
    Rep Power
    30

    "internet explorer has restricted this webpage from running scripts "

    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.

  2. #2

    glennda's Avatar
    Join Date
    Jun 2009
    Location
    Sussex
    Posts
    7,800
    Thank Post
    272
    Thanked 1,135 Times in 1,031 Posts
    Rep Power
    349
    Have you tried putting it in the trusted sites in Internet options?

    but i don't know if it will like the local path

  3. #3


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,580
    Thank Post
    228
    Thanked 854 Times in 733 Posts
    Rep Power
    295
    you could add it to the users local intranet sites group mught work

  4. #4
    kennysarmy's Avatar
    Join Date
    Oct 2005
    Location
    UK
    Posts
    1,286
    Thank Post
    80
    Thanked 45 Times in 31 Posts
    Rep Power
    30
    I followed the instructions here but it's made no difference

    How To Configure Trusted Sites In Internet Explorer For A Group Policy

  5. #5


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,770
    Thank Post
    222
    Thanked 2,630 Times in 1,938 Posts
    Rep Power
    779
    Quote Originally Posted by kennysarmy View Post
    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).

    Code:
    <!-- saved from url=(0016)http://localhost -->
    This line needs to be placed between <!doctype> and <html> i.e.

    Code:
    <!doctype html>
    <!-- saved from url=(0016)http://localhost -->
    <html>
    <head>
      <title>Energy Dashboard</title>
      <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    </head>
    <body>
    
    <!-- etc. -->
    
    </body>
    </html>
    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)

  6. #6


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,770
    Thank Post
    222
    Thanked 2,630 Times in 1,938 Posts
    Rep Power
    779
    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 <head> tags.
    3. Save the file, then rename to index.hta.


    Code:
    <!doctype html>
    <html>
    <head>
      <title>Energy Dashboard</title>
      <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
      
      <HTA:APPLICATION
        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
        >
    </head>
    <body>
    
    <!-- etc. -->
    
    </body>
    </html>
    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)

  7. #7


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,770
    Thank Post
    222
    Thanked 2,630 Times in 1,938 Posts
    Rep Power
    779
    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.

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

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 3
    Last Post: 11th September 2009, 09:01 AM
  2. OWA "Internet Explorer cannot display the webpage"
    By jmair in forum Windows Server 2000/2003
    Replies: 2
    Last Post: 17th March 2009, 07:41 PM
  3. Replies: 12
    Last Post: 13th March 2009, 05:13 PM
  4. Replies: 7
    Last Post: 12th October 2008, 08:33 PM
  5. Replies: 6
    Last Post: 28th September 2006, 07:06 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •