Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Which version of .NET has the System.Management namespace? 2

Status
Not open for further replies.

ProtocolPirate

Programmer
Nov 21, 2007
104
US
I'm trying to find map network drives without using an ugly shell command to call "net use" and I've found that there is a serious limitation to the old windows API calls to WNetAddConnection2 (can't map drives by a different user name on a completely different drive, which is quite ugly too).

So I keep seeing all of these wonderful WMI functions that do network drive mapping and much more, but they all say to do Imports System.Management. What the heck version of .NET are they referring to, it *never* says. I'm sure as hell not seeing it in .NET 2.0. The only thing under the System namespace that starts with Ma is the Math package.

Which version of .NET has the System.Management namespace?
 
I think it is in version 3.0+ But you can use it in vb2005 by setting reference to (project > add reference..) that namespace.(If you have 3.0 framework installed)

________________________________________________________
Zameer Abdulla
Help to find Missing people
 
It's all of them. You just have to add the reference.

And please don't cross post.

C
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top