ADP20050312: Test environment, preparation work
ADP20050312: Preparation
Before introducing today's knowledge, I hope everyone has a certain understanding of Active Directory. Best you are a network management of the Windows network, minimal, you should virtualize a Windows 2000 Server Family domain controller like I am in our XP system. My machine CPU: Intel P4 1.7GHz, Memory: 256 128 =
384M, hard disk Mai Tuo
60g (unfortunately
60G has been full of me, in order to install this virtual system, I will come back and get back, I finally will be one.
3.5G partition is completely empty). I use VMware WorkStation Version:
4.0.5. Install the system and generously give him
128M memory, establish an active directory to make it a domain controller. The machine name is ARSERVER, the domain name CAM, established Arden, XB two users, and colleagues to establish trust relationships with each other. These are not in trouble, and the books that have not been found for a MCSE before you can build a multi-domain structure than me.
The script has been used, and it has not been used. The following code is knocked into the notepad to save the AdsienumTop.vbs file, double-click directly or knock down 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: //" & advrootdse.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
The result in the virtual system I just configured is as follows:
Of course, you recommend that you install the VC or BCC compiler.
OK Configure such an environment, we can use it later to test.
If you have problems with the virtual system and configuration domain, you can leave a message, let's discuss.