Re: Hello All by William
William
Sat Aug 30 14:55:31 CDT 2003
Chris:
I just saw your response and gave it a try. Seems like
there is a lot that you can do with this.... I was just
wondering, what other sort of things are you doing with
DirectoryServices? I just plugged in some code I wrote
before to force a remote shutdown of a machine, and your
code allows me to basically iterate through everything on
the network and shut down, reboot etc. I haven't had much
exposure to DirectoryServices, but it seems like you could
add users from an App without them having to have the
ActiveDirectory Console and the like. I guess I'm just
enamored with this and thinking of some good projects to
start that could help me to get more familiar with it.
Thanks again Chris
Billl
>-----Original Message-----
>Hi Wayne,
>
>You can use the System.DirectoryServices to help you. For
the following code
>to work you will also have to add a reference to
>System.DirectoryServices.dll.
>
>Imports System.DirectoryServices
>
>Dim de As New DirectoryEntry("WinNT://workgroup") ' Put
the name of your
>workgroup/domain here
>Dim computer As DirectoryEntry
>
>For Each computer In de.Children
> ListBox1.Items.Add(computer.Name)
>Next
>
>Hope this helps
>
>Chris Taylor
>
>"Wayne Taylor" <wtt@kryptos.co.uk> wrote in message
>news:uLRm4dnbDHA.2308@TK2MSFTNGP12.phx.gbl...
>> I would like to list the Entire Network from within my
VB.NET app and
>allow
>> the user to select mulipy machines... I would like to
retain those
>machones
>> names so I can can pass them via (shell) to a Windows
script for
>excution...
>>
>> any suggestions?
>>
>> thanks in advance, Wayne
>>
>>
>
>
>.
>