asp tutorials, asp.net tutorials, sample code, and Microsoft news from 15Seconds
Data Access  |   Troubleshooting  |   Security  |   Performance  |   ADSI  |   Upload  |   Email  |   Control Building  |   Component Building  |   Forms  |   XML  |   Web Services  |   ASP.NET  |   .NET Features  |   .NET 2.0  |   App Development  |   App Architecture  |   IIS  |   Wireless
 
Pioneering Active Server
 Power Search










Active News
15 Seconds Weekly Newsletter
• Complete Coverage
• Site Updates
• Upcoming Features

More Free Newsletters
Reference
News
Articles
Code Samples
Components
Tools
FAQ
Feedback
Books
Links
DL Archives
Community
Messageboard
List Servers
Mailing List
WebHosts
Consultants
Tech Jobs
15 Seconds
Home
Site Map
Press
Legal
Privacy Policy
internet.commerce














internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

HardwareCentral
Compare products, prices, and stores at Hardware Central!

PreviousNext

 

email this FAQ to a colleague

Q: How do I view all the domains that are available using ADSI?

A: Here is some code that uses ADSI to display all the domains available:



Dim adsNS As IADsContainer
Dim adsDomain As IADsDomain

Set adsNS = GetObject("WinNT:")
adsNS.Filter = Array("domain")

For Each adsDomain In adsNS
	Response.Write(adsDomain.ADsPath & "
") Next adsDomain
Here is some code that uses ADSI to display all the domains available:


Dim adsNS As IADsContainer
Dim adsDomain As IADsDomain

Set adsNS = GetObject("WinNT:")
adsNS.Filter = Array("domain")

For Each adsDomain In adsNS
	Response.Write(adsDomain.ADsPath & "<BR>")
Next adsDomain


- Wayne Berry

Articles
Jul 30, 2002 - Accessing Active Directory Through the .NET Framework
In this article, Robert Chartier shows how to use the System.DirectoryServices Class for some simple User and Group administration tasks with impersonation.
[Read This Article]  [Top]
Jan 30, 2002 - Add to Your ADSI Code Library
Remie Bolte has put together a collection of ADSI scripts for some of the more common Windows administration tasks.
[Read This Article]  [Top]
Nov 27, 2001 - Learning ADSI - Part 2: Editing Users and Administering Groups
In this article, Remie Bolte further demonstrates the power of ADSI with code that renames users, changes user properties, changes user boundaries, and creates, populates, and removes user groups.
[Read This Article]  [Top]
Oct 5, 2001 - Learning ADSI - Part 1: Adding Users To W2K
Remie Bolte uses his popular Adding Users to W2K code sample as a basis for introducing and exploring Microsoft's Active Directory Services Interface.
[Read This Article]  [Top]
Jul 10, 2001 - Web site Administration with ADSI and the .NET DirectoryServices Namespace
The power of Active Directory Service Interfaces (ADSI) and the Microsoft .NET Framework is introduced by Tony Caudill. After completing this article you will be able to easily tame the System.DirectoryServices Namespace and use ADSI services to programatically create, delete, and update all aspects of your Web farm's virtual directories.
[Read This Article]  [Top]

Books
ADSI ASP Programmer's Reference
Steven Hahn, Steve Hahn

Knowledge Base Articles
HOWTO: Speed Up ADSI Group & Dist. List Members...
Q192950 - 1998.10.08
How to Programmatically Create Members in Site ...
Q192781 - 1998.10.08
How to Programmatically Add Members to Groups
Q192782 - 1998.10.08
HOWTO: Get User Information Using ADSI
Q190741 - 1998.10.08
Using ADO to Access Objects Through ADSI LDAP P...
Q187529 - 1998.10.08


Support the Active Server Industry



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers