Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi, I need to retrieve ALL windows users, whatever their group is.

 

I had the code in VB6,

 

Set myComputer = GetObject("WinNT://" & sComputerName & ",computer")

If Err.Number <> 0 Then

MsgBox ("An error has occurred." & Err.Number)

Exit Sub

End If

 

myComputer.Filter = Array("user")

For Each member In myComputer

List1.AddItem member.Name

Next

 

But in VB.net its not working, well.. there is an error with the Array Function, being a type in vb.net.

 

anyone have an idea how to do it?

 

Many thanks

Posted

Is directoryservices can be used to use Win2k local users?

If so, can someone post me a little example how to use it? I need to list, create and remove users from a local computer with my software. I had a working code on vb6, but I need to switch to .NET

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...