HighTechTalks DotNet Forums  

ManagementException accessing Win32_OperatingSystem.PAEEnabled

Dotnet Framework (WMI) microsoft.public.dotnet.framework.wmi


Discuss ManagementException accessing Win32_OperatingSystem.PAEEnabled in the Dotnet Framework (WMI) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
mabra
 
Posts: n/a

Default ManagementException accessing Win32_OperatingSystem.PAEEnabled - 07-10-2007 , 04:03 PM






Hi All !

I just copied the sample from the SDK to enum the properties of the
"Win32_OperatingSystem" class, but got the error in subject:

Unhandled Exception: System.Management.ManagementException: Not found

This happens on a x64 computer

Windows Server 2003 R3, x64 Edition, SP2, en, fully patched
..Net Framework 1.1, all SPs
So, this runs a win32 process.

This is surely a bug, the enumeration returns this property!
A code-excerpt is:

foreach (PropertyData property in properties)
{
Console.WriteLine("Description: " +
property.Qualifiers["Description"].Value); //BOMB
...
}

As I mentioned, it's from the SDK ;-)

Each help is very welcomed!

Thanks so far and
best regards,
mabra

Reply With Quote
  #2  
Old   
Pierre
 
Posts: n/a

Default Re: ManagementException accessing Win32_OperatingSystem.PAEEnabled - 07-14-2007 , 07:19 AM






Not familiar witth WMI but I would try rather something like :

MyObject.Properties["Description"].Value

My general approach for this is to start by enumerating all as it looks you
are looking fro something that is not there...

---
Patrice

"mabra" <mabra (AT) world (DOT) eu> a écrit dans le message de news:
eFGSW1ywHHA.4228 (AT) TK2MSFTNGP06 (DOT) phx.gbl...
Quote:
Hi All !

I just copied the sample from the SDK to enum the properties of the
"Win32_OperatingSystem" class, but got the error in subject:

Unhandled Exception: System.Management.ManagementException: Not found

This happens on a x64 computer

Windows Server 2003 R3, x64 Edition, SP2, en, fully patched
.Net Framework 1.1, all SPs
So, this runs a win32 process.

This is surely a bug, the enumeration returns this property!
A code-excerpt is:

foreach (PropertyData property in properties)
{
Console.WriteLine("Description: " +
property.Qualifiers["Description"].Value); //BOMB
...
}

As I mentioned, it's from the SDK ;-)

Each help is very welcomed!

Thanks so far and
best regards,
mabra



Reply With Quote
  #3  
Old   
mabra
 
Posts: n/a

Default Re: ManagementException accessing Win32_OperatingSystem.PAEEnabled - 07-16-2007 , 10:03 AM



Hi !

No, but thanks. I first enumerate the properties and WMI return
that!!!!!! But if I try to access the value, it bombs.

Best regards,
mabra


Pierre wrote:
Quote:
Not familiar witth WMI but I would try rather something like :

MyObject.Properties["Description"].Value

My general approach for this is to start by enumerating all as it looks you
are looking fro something that is not there...

---
Patrice

"mabra" <mabra (AT) world (DOT) eu> a écrit dans le message de news:
eFGSW1ywHHA.4228 (AT) TK2MSFTNGP06 (DOT) phx.gbl...
Hi All !

I just copied the sample from the SDK to enum the properties of the
"Win32_OperatingSystem" class, but got the error in subject:

Unhandled Exception: System.Management.ManagementException: Not found

This happens on a x64 computer

Windows Server 2003 R3, x64 Edition, SP2, en, fully patched
.Net Framework 1.1, all SPs
So, this runs a win32 process.

This is surely a bug, the enumeration returns this property!
A code-excerpt is:

foreach (PropertyData property in properties)
{
Console.WriteLine("Description: " +
property.Qualifiers["Description"].Value); //BOMB
...
}

As I mentioned, it's from the SDK ;-)

Each help is very welcomed!

Thanks so far and
best regards,
mabra



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.