System.Management How?

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
 
G

Guest

System.DirectoryServices.dll responsible for the ActiveDirectory, not the WMI
Add reference to the System.Management.dll
 
R

Rainer Queck

Hello Joachim, hello Michael,

thanks for this hint. That solved my problem.

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

Rainer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top