September 2003
Intermediate to advanced
624 pages
15h 49m
English
You want to view the attributes of a class.
Open the Active Directory Schema snap-in.
In the left pane, click on the Classes folder.
In the right pane, double-click the class you want to view.
Click on each tab to view the available properties.
In the following command, replace
<ClassCommonName> with the common
name (not LDAP display name) of the class you want to view:
> dsquery * cn=<ClassCommonName>,cn=schema,cn=configuration,<ForestRootDN> -scope[RETURN] base -attr *
' This code prints out the attributes for the specified class.
' Recipe 4.2 for the code for the DisplayAttributes( ) function.
' ------ SCRIPT CONFIGURATION ------
' Set to the common name (not LDAP display dame)
' of the class you want to view.
strClassName = "<ClassCommonName>" ' e.g. user
' ------ END CONFIGURATION ---------
set objRootDSE = GetObject("LDAP://RootDSE")
set objClass = GetObject("LDAP://cn=" & strClassName & "," & _
objRootDSE.Get("schemaNamingContext"))
objClass.GetInfo
WScript.Echo "Properties for " & strClassName
DisplayAttributes(objClass.ADsPath)See Table 10-1 for a list of the important
classSchema attributes and their descriptions.
Recipe 4.2 for viewing the attributes of an object