![]() Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List the Active Directory Class Type for an Object
|
||
' Description: Determines the Active Directory class type for the organizational-person object.
strClassName = "cn=organizational-person" Set objSchemaClass = GetObject _ ("LDAP://" & strClassName & _ ",cn=schema,cn=configuration,dc=fabrikam,dc=com") intClassCategory = objSchemaClass.Get("objectClassCategory") Select Case intClassCategory Case 0 strCategory = "88" Case 1 strCategory = "structural" Case 2 strCategory = "abstract" Case 3 strCategory = "auxiliary" End Select Wscript.Echo strClassName & " is categorized as " & strCategory & "." | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |