Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List the Active Directory Class Type for an ObjectContent of List the Active Directory Class Type for an Object.vbsMD5 Hash: 3C8DCAE6C94B2AB3F57B3F929FE15D47 |
||
' 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 :: |