Running the Examples
For consistency, each code example
uses the same OU, the same CN (Ken
Myer), and the same sAMAcccount-
Name (MyerKen). Therefore, after running
each code sample successfully,
open the Microsoft Management Console
(MMC) AD Users and Computers
snap-in and delete the Ken Myer user
account in the TechWriters OU prior
to running the next code sample. To
run each sample, double-click the
script file or compiled code. Alternatively,
go to the command prompt,
navigate to the file folder, type the
name of the file, and press Enter.
Are You Encouraged?
You now know how to create an AD
user account in four different coding
languages. The key is stripping a task
down to its core and working from
there. Each language presents a surprisingly
similar approach to coding
the task.
In upcoming articles, I'll augment
this task so that you can specify user
account information from the command
line, create multiple user
accounts, and handle errors. Beyond
that, my goal is to continue to enlighten
you about the relative ease with which
you can complete other crucial systems
administration tasks from all of these
languages.