Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > ASP / WMI

Reply
Thread Tools

ASP / WMI

 
 
Dthmtlgod
Guest
Posts: n/a
 
      03-15-2005
Sorry about the multiple posts (none to this forum), but I have made some
progress on my Access Denied problem.

On my machine, I can access machines remote to pull WMI data via ASP. This
is what I want.

I can't access the information when I log onto another machine. None of the
other administrators have any luck either.

I believe it is a setting on my machine. All the machines are built the
same, the only exception is my machine has IIS installed on it. I have
tried to run it on another machine with IIS installed and no luck.

Any ideas out there?



 
Reply With Quote
 
 
 
 
Jeff Cochran
Guest
Posts: n/a
 
      03-15-2005
On Tue, 15 Mar 2005 09:52:32 -0500, "Dthmtlgod" <(E-Mail Removed)>
wrote:

>Sorry about the multiple posts (none to this forum), but I have made some
>progress on my Access Denied problem.
>
>On my machine, I can access machines remote to pull WMI data via ASP. This
>is what I want.
>
>I can't access the information when I log onto another machine. None of the
>other administrators have any luck either.
>
>I believe it is a setting on my machine. All the machines are built the
>same, the only exception is my machine has IIS installed on it. I have
>tried to run it on another machine with IIS installed and no luck.
>
>Any ideas out there?


Need a better definition of "can't access". Can't get the ASP page?
The data is incorrect in the page? The WMI code doesn't work?

Jeff
 
Reply With Quote
 
 
 
 
Dthmtlgod
Guest
Posts: n/a
 
      03-15-2005
Receiving this error

Error Type:
SWbemLocator (0x80041003)
Access denied
/eventlog3.asp, line 33

CN = "sasl0006"

set wmiLocator = CreateObject("WbemScripting.SWbemLocator")

Set wmiServices = wmiLocator.ConnectServer(CN) ** Errors on this line **

It works on my machine no problem, but other users get the above error. I
get the error as well when I access the site from another computer.



"Jeff Cochran" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Tue, 15 Mar 2005 09:52:32 -0500, "Dthmtlgod" <(E-Mail Removed)>
> wrote:
>
> >Sorry about the multiple posts (none to this forum), but I have made some
> >progress on my Access Denied problem.
> >
> >On my machine, I can access machines remote to pull WMI data via ASP.

This
> >is what I want.
> >
> >I can't access the information when I log onto another machine. None of

the
> >other administrators have any luck either.
> >
> >I believe it is a setting on my machine. All the machines are built the
> >same, the only exception is my machine has IIS installed on it. I have
> >tried to run it on another machine with IIS installed and no luck.
> >
> >Any ideas out there?

>
> Need a better definition of "can't access". Can't get the ASP page?
> The data is incorrect in the page? The WMI code doesn't work?
>
> Jeff



 
Reply With Quote
 
Aaron [SQL Server MVP]
Guest
Posts: n/a
 
      03-15-2005
Are you accessing the site anonymously, or is anonymous access disabled? Is
IIS set to impersonate someone other than the local IUSR account?

The reason you are getting errors in specific instances is similar to why,
in a default scenario, users can't connect to Access databases or text files
on a network share. (See http://www.aspfaq.com/2168). In addition, most
WMI capabilities require elevated privileges aside from just read/write (I
think Admin is required for any change functionality, and for some read as
well).

So, you either need to force windows authentication and require the user to
use a domain account possessing these elevated permissions, or you can set
IIS to impersonate a similar elevated user. Perfhound was written largely
using WMI, and it has the same limitations. See how to work around them
here:

http://www.aspfaq.com/perfhound.asp

--
Please post DDL, sample data and desired results.
See http://www.aspfaq.com/5006 for info.




"Dthmtlgod" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> Receiving this error
>
> Error Type:
> SWbemLocator (0x80041003)
> Access denied
> /eventlog3.asp, line 33
>
> CN = "sasl0006"
>
> set wmiLocator = CreateObject("WbemScripting.SWbemLocator")
>
> Set wmiServices = wmiLocator.ConnectServer(CN) ** Errors on this line **
>
> It works on my machine no problem, but other users get the above error. I
> get the error as well when I access the site from another computer.



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Retrieving User credentials and Domain name through WMI in ASP.NE =?Utf-8?B?dmlqdTgy?= MCSD 1 09-07-2004 07:51 PM
Access Denied for WMI/ADSI over ASP.Net Roy Osherove ASP .Net 3 09-14-2003 09:47 PM
ASP.NET with VB.NET and WMI Andreas Semmelmann ASP .Net 3 08-06-2003 05:01 AM
WMI and ASP.NET Richard Schneider ASP .Net 1 07-11-2003 12:28 AM
Re: Reboot remote server from ASP.NET (VB.NET) using WMI Ken Tucker ASP .Net 0 07-05-2003 10:41 AM



Advertisments