There are many questions that come up regularly in the forums. These recipes address some of those questions.
Recipes
Accessing Active Directory
How to query Active Directory without hard-coding the domain name - in C# and VB.Net
Testing your directory access code
Getting code which accesses Active Directory to work inside IIS can be tricky. It's often a good idea to write and test your classes outside of IIS, where it's much simpler. These four recipes show you how to set up console projects in Visual Basic.NET and C# using Microsoft Visual Studio® 2005 SP1 and 2008.
How to create a VB.NET project to access Active Directory using VS 2005 SP1
How to create a VB.NET project to access Active Directory using VS 2008
How to create a C# console project to access Active Directory using VS 2005 SP1
How to create a C# console project to access Active Directory using VS 2008
Revision number 5, Sunday, September 07, 2008 12:45:41 PM by ssg31415926
You must Login to comment.
|
Fri, Sep 5, 2008 11:43 AM
by jinksk
|
The links to "How to create a C# project to access Active Directory" and "How to create a VB.Net project to access Active Directory" are broken!
|
|
Fri, Apr 10, 2009 4:20 PM
by agrawalbs
|
nice article...
|
|
Mon, Jun 29, 2009 4:28 AM
by srinivaskotra
|
Thanks it is helpful..
|
Revision #2
Sun, Mar 21, 2010 8:09 PM
by mbanavige
|
How to change the password of a local computer user remotely
Ever wanted to change the password of the local administrator account (or any local user account for that matter) in .net? Here's how: Code is in white on blue!Make sure you importSystem.DirectoryServices Imports System.DirectoryServices First things first
|
Revision #6
Tue, Sep 9, 2008 10:59 PM
by mbanavige
|
How to query Active Directory without hard-coding the domain name
It can be useful to be able to write code that can query the current domain without you having to hard-code the domain name. This article will show you how. Scenario Let us imagine that you have two Active Directory forests, one production and one development
|
Revision #2
Sun, Sep 7, 2008 9:00 PM
by mbanavige
|
AD console project in C# in VS 2008
Getting Active Directory queries to work in ASP.NET and IIS can be extremely tricky, especially if you're just getting started with ASP.NET, IIS and the DirectoryServices namespace. It's often helpful to get your basic queries working in a Console
|
Revision #2
Sun, Sep 7, 2008 9:00 PM
by
|
AD console project in C# in VS 2008
Getting Active Directory queries to work in ASP.NET and IIS can be extremely tricky, especially if you're just getting started with ASP.NET, IIS and the DirectoryServices namespace. It's often helpful to get your basic queries working in a Console
|