Any Way To Enumerate Domains

Rigsby

Member
Licensed User
Longtime User
I've been using the SMB library to get network files, works great.

However....to connect I obviously need to know the initial domain name, for example //USER-D2F90B4478/compaq/

knowing the domain name and credentials, then connect using...

smb1.SetCredentials("","","")
smb1.ListFiles("smb://USER-D2F90B4478/compaq/","")

Is there any way to enumerate all available domains, like you do in windows by clicking a workgroup icon?

Cheers

Rigsby
 

Rigsby

Member
Licensed User
Longtime User
I've been using the SMB library to get network files, works great.

However....to connect I obviously need to know the initial domain name, for example //USER-D2F90B4478/compaq/

knowing the domain name and credentials, then connect using...

smb1.SetCredentials("","","")
smb1.ListFiles("smb://USER-D2F90B4478/compaq/","")

Is there any way to enumerate all available domains, like you do in windows by clicking a workgroup icon?

Cheers

Rigsby


Attached might be useful if the need ever arises for someone else.
 

Attachments

  • enumerate_servers.zip
    7.3 KB · Views: 167
Upvote 0
Top