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
New
Topics
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!



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
PreviousMail To MeNext
Free Download
Download an free version of this product[Download]
COM Tutorial
Here is a COM tutorial written for Active Server Programmers. This tutorial will increase your understanding of COM fundementals so that you can use other components to expand your Active Server page applicatons.[Read The Tutorial]

Support the Active Server Industry

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