System.Management How?

  • Thread starter Thread starter Rainer Queck
  • Start date Start date
R

Rainer Queck

Hi NG,

I am trying to get system information like Windows Registration Number /
Mac-Address.
Asking Mr. Googles I found out, that WMI is what I need.

In the MSDN Library I found (might not be translated correctly from german
to english) :
"How to : prepare the IDE for use of WMI .NET"

There it sais to reference the "System.DirctoryServices.dll" and then to use
the "System.Management" name space.
I have done so, but on compiling I get the error message, that this name
space is not available.

What is it I am doing wrong?

Thanks for hints and Help.
Rainer Queck
 
System.DirectoryServices.dll responsible for the ActiveDirectory, not the WMI
Add reference to the System.Management.dll
 
Hello Joachim, hello Michael,

thanks for this hint. That solved my problem.

Too bad that the MSDN Library leads into the wrong direction.

Rainer
 
Back
Top