Subscribe to Windows IT Pro
August 16, 2004 12:00 AM

Scripting and Managed Code Demystified

Complete a simple administrative task in four languages
Windows IT Pro
InstantDoc ID #43317
Rating: (1)
Downloads
43317.zip

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.

Related Content:

ARTICLE TOOLS

Comments
  • Anonymous User
    7 years ago
    Jan 19, 2005

    You have helped me so much.
    Now I am just waiting on how to make this script more robust.

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.