473,399 Members | 3,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Domain users an other users

Hi

I'm developping an application as a front end for SQL server. I want to use
System authentication on my SQL Server.

I want to be able to add new users accounts. The gretatest problem here is
to display a window with a list of users and or groups of my domain so the
administrator doesn't have to type the whole name. I'd also want to know how
this could be done if I'm inside a workgroup (No domain)... That is, getting
the users list from a remote machine.

Thanks in advance.
Nov 20 '05 #1
1 1033
Hi,

You can use the wmi for that. Add a reference to system.management.

Dim moReturn As Management.ManagementObjectCollection

Dim moSearch As Management.ManagementObjectSearcher

Dim mo As Management.ManagementObject

moSearch = New Management.ManagementObjectSearcher("Select * from
Win32_Account")

Debug.WriteLine("Accounts")

moReturn = moSearch.Get

For Each mo In moReturn

Try

Debug.WriteLine(mo("Name").ToString)

Catch

End Try

Next

moSearch = New Management.ManagementObjectSearcher("Select * from
Win32_Group")

Debug.WriteLine("Groups")

moReturn = moSearch.Get

For Each mo In moReturn

Try

Debug.WriteLine(mo("Name").ToString)

Catch

End Try

Next

Ken

--------------------------

"Juan Pedro Gonzalez" <th******@terra.es> wrote in message
news:uC**************@TK2MSFTNGP11.phx.gbl...
Hi

I'm developping an application as a front end for SQL server. I want to
use
System authentication on my SQL Server.

I want to be able to add new users accounts. The gretatest problem here is
to display a window with a list of users and or groups of my domain so the
administrator doesn't have to type the whole name. I'd also want to know
how
this could be done if I'm inside a workgroup (No domain)... That is,
getting
the users list from a remote machine.

Thanks in advance.

Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

27
by: Tim Tyler | last post by:
Are there many PHP public domain projects out there? I'm particularly interested in CMS project materials. So far - outside of my own projects - I've found /very/ little PD PHP material out...
2
by: Galahad | last post by:
I have a current requirement to deny access to a particular website from a list of domains. I can add these domains to a deny list in IIS, however that doesn't give me the ability detect these...
0
by: RobinB | last post by:
We gave created a web application that uses AD for authorization and authentication. The application can be used by domain users as well as the general public. What we currently have is 2 domains...
3
by: Terry Olsen | last post by:
I have administrator access on 2 different domains on the network at my job. I wrote a program to query the registry key on remote PC's and return the results to an excel spreadsheet. However, the...
1
by: Tom | last post by:
Is there a way for a VB.NET client to retrieve a list of all the users in an NT/2000 domain? I might want to do this so that I could present the user a list of other users to pick from? (for...
0
by: bi89101 | last post by:
I'm trying to debug a C++ application on the local machine (not ASP.NET) which happens to be a domain controller. Administrators can debug, but domain users cannot. I have looked at the debugger...
3
by: musosdev | last post by:
Hi guys I've got the following error on a project which is running locally on a vs2005 machine (built in webserver), trying to connect to my win2k3 server active directory. the error is... ...
17
by: Bruno | last post by:
I have a feature that is hosted on a different domain from the primary one in a frame, and need to retain values in a cookie. example: A web page at one.com contains a frame which has a page...
6
by: MLH | last post by:
I'm tired of reading the fine print! Too many registrars out there. So I'm asking this group for a little help. I'm looking for a Registrar who will do an honest day's work for a fair price. I'm...
4
by: CG | last post by:
Hi I need to implement some low level security that locks a certain page if the user does come from a particular link (which is hosted on another domain). I've considered using HTTP_REFERER...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.