Hello,

I am still a bit new with writing VBScript in a web page so hopefully
someone can help me with this issue I am having.

I have a management server (MS 2003) in domain USERS, and on this
server I have IIS running with just a simple interface on a web page
right now to help automate an administrative task. However, their are
users that are in the ADMIN domain that will mostly be accessing this
page (along with ones from the USERS domain), however, the users in the
ADMIN domain always get the ADO Security Warning dialog box everytime
the script runs, "The website uses a data provider that may be unsafe.
if you trust this site click OK...", while those users that log into
the USERS domain are fine and do not get this error at all.

How can I supress this dialog box, add code to remedy it, or change
settings on the web server that will fix it. I don't want anyone to
have to actually modify their own PC settings to get this to work
without the warnings.

Thanks,
Ron

RE: VBScript in Web Page and Security by ESP

ESP
Thu Nov 03 16:34:02 CST 2005

GoneRural,
Just glanced at your question, so I'm sure there are a dozen work-arounds to
this.

Just off the top of my head:
1) Add that site/page/etc... to the Trusted Sites in IE on the client's
machines.
2) Use an HTA. Depending on how the users got to the HTA, it will prompt as
well ;-)

ESP


'---Adding to Trusted Site Code (sorry about the word-wrap)---
Const HKEY_CURRENT_USER = &H80000001
Set WshShell = WScript.CreateObject("WScript.Shell")
strURL = "www.microsoft.com"
Set objReg=GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "Software\Microsoft\Windows\CurrentVersion\Internet Settings\"
& "ZoneMap\Domains\" & strURL & ""
objReg.CreateKey HKEY_CURRENT_USER, strKeyPath
strValueName = "http"
dwValue = 2
objReg.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, strValueName, dwValue







"GoneRural" wrote:

> Hello,
>
> I am still a bit new with writing VBScript in a web page so hopefully
> someone can help me with this issue I am having.
>
> I have a management server (MS 2003) in domain USERS, and on this
> server I have IIS running with just a simple interface on a web page
> right now to help automate an administrative task. However, their are
> users that are in the ADMIN domain that will mostly be accessing this
> page (along with ones from the USERS domain), however, the users in the
> ADMIN domain always get the ADO Security Warning dialog box everytime
> the script runs, "The website uses a data provider that may be unsafe.
> if you trust this site click OK...", while those users that log into
> the USERS domain are fine and do not get this error at all.
>
> How can I supress this dialog box, add code to remedy it, or change
> settings on the web server that will fix it. I don't want anyone to
> have to actually modify their own PC settings to get this to work
> without the warnings.
>
> Thanks,
> Ron
>
>