Re: Using a WMI object from with a webpage
- From: Tom Lavedas <tglbatch@xxxxxxx>
- Date: Fri, 29 Jun 2007 17:18:41 -0000
On Jun 28, 5:31 pm, Adam Sandler <cor...@xxxxxxxxxx> wrote:
On Jun 28, 11:42 am, "S Moran" <s...@xxxxxxxxx> wrote:
there are lots of things you cant do in a browser because of security
reasons. simple answer is, DONT use a browser. just write a standalone
script.
I know that -- as I said earlier I'm responsible for the code mx. I
am not the original author of the code. The schedule and baseline
doesn't support a do over right now. Fortunately, the system doesn't
connect to the internet so the security risk is slightly less. I'd
appreciate a code solution regarding my original question rather than
a critique of what the original author is doing wrong.
Thanks!
That may or may not be possible, depending on the user's operating
environment and predisposition or capability to adjust the security
level.
If the USER is in a position to lower the security level of their
browser (presumably IE, since you are asking this in a VBS group),
they can set it to accept ActiveX controls. Specifically, look at the
setting for the "Initialize and script ActiveX controls not marked as
safe" under the "ActiveX controls and plug-ins" items in the "Local
intranet" portion of the IE Security options tab. It is generally set
to "disable", but could be raised to (by each user) to 'prompt' (or
even 'enable' - not recommended). This should get past the 'ActiveX
component can't create object: 'GetObject'' issue.
I'm not certain whether IE 7 and/or Vista still permits this. If not,
the process will need to be reworked. In that case, a downloaded HTA
will be able to access the ActiveX control without the problem of a
security restriction. It may also be possible to configure their
system to accept remote WMI access so that they don't have to run
anything. Your script would simply read their drive remotely (beyond
my expertise - have just seen the capability discussed and in the
docs).
Tom Lavedas
===========
.
- Follow-Ups:
- Re: Using a WMI object from with a webpage
- From: Adam Sandler
- Re: Using a WMI object from with a webpage
- References:
- Using a WMI object from with a webpage
- From: Adam Sandler
- Re: Using a WMI object from with a webpage
- From: S Moran
- Re: Using a WMI object from with a webpage
- From: Adam Sandler
- Using a WMI object from with a webpage
- Prev by Date: Re: Call API via excel from script
- Next by Date: Re: Call API via excel from script
- Previous by thread: Re: Using a WMI object from with a webpage
- Next by thread: Re: Using a WMI object from with a webpage
- Index(es):
Relevant Pages
|
Loading