The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: Lightman on January 10, 2008, 12:30:31 PM

Title: Creating users in Active Directory
Post by: Lightman on January 10, 2008, 12:30:31 PM
Hi Everybody,

Does anyone out there know of any good guides online for dealing with Active Directory.  I am working with a AD server, creating a large amount of new users.  I am looking to create a program that automatically fills in details like Office, description and Login Script into the user's account details.

I can run the program from the server logged in as Local Administrator.

Regards,

Lightman
Title: Re: Creating users in Active Directory
Post by: P1 on January 10, 2008, 02:43:06 PM
Because of M$ changing AD environment, it's best to stick with a HLL for stuff like this.

I recommend "Windows Server Hacks" by Mitch Tulloch of O'Reilly Media.  It has VB scripts to get going in minutes.

Regards,  P1   :8)
Title: Re: Creating users in Active Directory
Post by: Vortex on January 10, 2008, 06:03:29 PM
Beside scripting, you can use also the LDIFDE tool ( Lightweight Directory Access Protocol Data Interchange Format Directory Exchange ) to manage multiple users :

Ldifde -i -f newusers.ldf

-i  : Import from text file to Active Directory database
-f  : file name
Title: Re: Creating users in Active Directory
Post by: P1 on January 11, 2008, 02:55:05 PM
I looked at your web link.

Look into SoftIce for what you want to do.

Back in the old days, we would use a real ICE, to determine our time critical issues. 

Something to watch for is the processor variations that tend to complicate speed tests, will be an issue for you as well.

Regards,  P1   :8)
Title: Re: Creating users in Active Directory
Post by: bozo on January 18, 2008, 01:46:05 AM
Lightman, i've seen working examples on the MSDN site.
Those were in C++ and Visual Basic,utilising COM libraries..

As you may know, writing such an application is not really recommended in assembly.
Its possible - of course - i just wouldn't want to be the one to do it.

actually, i was thinking about writing a small application to do these kind of things you speak of, but not in assembly.