ADP-Active Directory programming-01

Source: Internet
Author: User
Adp20050312: test environment and preparation

Adp20050312: Preparation

Before introducing today's knowledge, I hope you will have some knowledge about Active Directory. It is recommended that you use Windows network management. At the minimum, you should Virtualize a Windows 2000 Server family Domain Controller on your XP system, just like me. My machine CPU: Intel P4 1.7 GHz, memory: 256 + 128 = 384 M, Hard Drive 60 GB (unfortunately this 60 GB has been fully filled by me. In order to install this virtual system, I made room for it. 3.5G partitions are completely empty ). I use VMware Workstation version: 4.0.5. Install the system and give it to him generously. MB of memory, create an Active Directory and make it a domain controller. The machine name is arserver and the domain name is Cam. It establishes two users, Arden and XB, and establishes a trust relationship with the test domain CAD of colleagues. These are not troublesome. I have never found a book such as MCSE before and can create a domain structure that is much better than mine.

 

 

You have used all the scripts. It doesn't matter if you haven't used them. You can double-click the following code into notepad and save it as the adsienumtop. vbs file, or double-click the following command in the command line:> cscript adsienumtop. vbs

‘file name :ADSIEnumTop.vbs

' Connect to the Active Directory root object
Set adsRootDSE = GetObject("LDAP://RootDSE")
' Form a path to the top-level container of the default domain
strPath = "LDAP://" & adsRootDSE.get("defaultNamingContext")
' Display path being used
WScript.echo "Listing objects at " & strPath
' Connect to the container specified
Set adsDomain = GetObject(strPath)
' Enumerate through each object in the container
For Each adsObject In adsDomain    ' Display the name of each object and its class
    WScript.Echo adsObject.Name & " (" & adsObject.Class & ")"
Next

In the virtual system I Just configured, it runs as follows:

 

 

Of course, we recommend that you install the VC or Bcc compiler.

OK. We can use this environment for testing later.

If you have questions about installing the virtual system and configuring the domain, leave a message and let's discuss it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.