Re: WMI from C#

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Steve,

I am sorry, I am not expert on this. You can, for example, create and use
managed assembles, which expose their properties to WMI. In deed, they
cannot have methods. So it looks like providing properties works [as events
do] but not methods. I have currently nearly zero informations about this in
..Net2.

I am currently trying to use instrumentation, but I am new to this. My exe
runs fine, exposes the class to wmi, all fine. But if I run it as an user,
it fails :-( I'll open an question on this later in the group ;-)

Best regards,
Manfred

"Steve Townsend" <SteveTownsend@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:EFBAD53D-38AA-44E7-B336-E9679BD875A8@xxxxxxxxxxxxxxxx
> Thanks Manfred, and understood. However, I have read elsewhere that new,
> custom method and property providers cannot be written using .Net 1.0/1.1.
I
> wondered if this is correct, and if so, whether 2.0 allows this to be
done.
> Or am I just misinformed?
>
> --
> Steve Townsend
> Lava Trading
>
>
> "Manfred Braun" wrote:
>
> > Hi,
> >
> > that's not a .Net issue, it's possibly a WMI issue. Many, many classes
and
> > properties and really read-only. If an object can be changed, this can
> > really done by the .Net framework. The best is to look into the WMI SDK
on
> > the list of classes to see, if the one can be changed.
> >
> > Best regards,
> > Manfred Braun
> >
> > (Private)
> > Mannheim
> > Germany
> >
> > mailto:_manfred.braun_@xxxxxxxxxxxx
> > (Remove the anti-spam-underscore to mail me!)
> >
> > "Steve Townsend" <SteveTownsend@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message
> > news:BF0B444B-A484-4A2D-A1D3-5569740715FE@xxxxxxxxxxxxxxxx
> > > It's my understanding that System.Management in .Net v1.0 and v1.1
does
> > not
> > > support update or deletion of managed objects. Is this correct?
> > >
> > > What is the situation in .Net v2.0 Beta2?
> > >
> > > Thanks in advance.
> > >
> > > Steve Townsend
> > > Lava Trading
> >
> >
> >


.



Relevant Pages

  • .net framework wmi crash problem
    ... We made a windows service that expose instance of a class to WMI, ... WMI service is scrambled and finally the test service will crash. ... exception that could not be handled. ...
    (microsoft.public.win32.programmer.wmi)
  • Re: WMI - User - Log On As A Service
    ... TIA, ... > WMI does not expose the apis required to accomplish this. ... >> I'm using WMI to create a user account, register an application as a NT ... >> with a permission error. ...
    (microsoft.public.dotnet.security)
  • Re: Remote Console -- Remoting?
    ... You can expose whatever you like. ... WMI instance provider and publish a CLR class as a WMI class. ...
    (microsoft.public.dotnet.general)
  • Re: MSNdis_80211 class(es) :(
    ... AFAIK this is not feasible with pure WMI. ... and expose it as WMI object ... > I would like to configure my wifi parameters (WEP key, ... > CIM studio but i have no idea on how to implement then in a vb script. ...
    (microsoft.public.win32.programmer.wmi)