WMI Security Problems

WMI Security Problems

am 02.10.2007 21:06:23 von Nuno Magalhaes

Hello,

I've done a small web application that uses WMI wrapper
(System.Management) and everything works fine on Cassini's development
web server from VS2005, while retrieving the device id and model from
the Win32_DiskDrive object.

Under IIS native ASP.NET server I'm experiencing security problems
since wbem logs says that an error has occured
(IOCTL_..._GETDRIVELAYOUT).
I'm not using impersonate option because the IE and the server will
run on the same machine and I gave all permissions possible to the
wwwroot folder and I'm noticing that all works fine except the WMI
functionality (i.e. retrieving the model and the physical drive name
given the drive letter).

What can I do to fix this problem and get the WMI to work ok with my
web application?

Thanks.

Re: WMI Security Problems

am 03.10.2007 10:25:00 von Nuno Magalhaes

On Oct 2, 8:06 pm, Nuno Magalhaes wrote:
> Hello,
>
> I've done a small web application that uses WMI wrapper
> (System.Management) and everything works fine on Cassini's development
> web server from VS2005, while retrieving the device id and model from
> the Win32_DiskDrive object.
>
> Under IIS native ASP.NET server I'm experiencing security problems
> since wbem logs says that an error has occured
> (IOCTL_..._GETDRIVELAYOUT).
> I'm not using impersonate option because the IE and the server will
> run on the same machine and I gave all permissions possible to the
> wwwroot folder and I'm noticing that all works fine except the WMI
> functionality (i.e. retrieving the model and the physical drive name
> given the drive letter).
>
> What can I do to fix this problem and get the WMI to work ok with my
> web application?
>
> Thanks.

I found that if I do a query over Win32_DiskDrive or Win32_LogicalDisk
the results are good, but over Win32_DiskPartition returns no results
at all (on IIS ASP.NET server). Maybe security reasons? What can I do
to fix this problem?