Avatar of powlin
powlin

asked on 

retreive windows domain list

I would like to retreive the domain list available on the windows user logon screen.

Thanks
Microsoft DevelopmentVisual Basic.NET.NET Programming

Avatar of undefined
Last Comment
Castorix
Avatar of sal-ee
sal-ee
Flag of United Kingdom of Great Britain and Northern Ireland image

Can you be a bit more specific? Are you trying to retrieve the domain from Active Directory?
Avatar of BillBord
BillBord

hit the down arrow
if its available it will be there
Avatar of powlin
powlin

ASKER

I want to retreive it by code using API, or any other way.

When I'm login on a computer that is on a domain, there's a list avalaible.
I want the content of this list in .NET Collection or Array or others string list
ASKER CERTIFIED SOLUTION
Avatar of sal-ee
sal-ee
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of powlin
powlin

ASKER

It's in VB.NET

I tried this function in a VBS and it return more domains than I get in the logon screen list
Avatar of sal-ee
sal-ee
Flag of United Kingdom of Great Britain and Northern Ireland image

Is it returning the domains and the domain.locals ? If so, then the script needs to be modified to specify default domains not locals...
Avatar of powlin
powlin

ASKER

I think I get some workgroup name not just domain
I get MSHOME, MYGROUP, WORKGROUP

This is the list that we get in the Networking in the Microsoft Windows Network
Avatar of Castorix
Castorix

It's a Usenet Win2 api FAQ (> 15 years)
You can ask on specialized Win32 api newsgroup :
news://194.177.96.26/comp.os.ms-windows.programmer.win32
to get the api.
.NET Programming
.NET Programming

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.

137K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo