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.