Hello, I've just went from VB 6 to the .Net platsform resently and I have som question regarding the use of ADSI in .net.

To use an example:
in VB 6 I use this lines of code to add a user to Active directory:
user = "foo"
hostname = "bar"
Set userobj = GetObject("WinNT://" & hostname & ",computer")
Set usercreateobj = userobj.Create("user", UserName)

--

How do I use the GETOBJECT in vb.net?

Is there another way?