You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
741 B
20 lines
741 B
on error resume next
|
|
set locator=CreateObject("WbemScripting.SWbemLocatorEx")
|
|
|
|
set conn=locator.Open("umi://nw01t1/LDAP","nw01t1domnb\administrator", "nw01t1domnb")
|
|
|
|
set ou = conn.Get (".OU=ajaytest")
|
|
|
|
WScript.Echo "Name:", ou.Name
|
|
WScript.Echo "Class:", ou.Class
|
|
WScript.Echo "GUID:", ou.GUID
|
|
WScript.Echo "ADSPath:", ou.ADSPath
|
|
WScript.Echo "Parent:", ou.Parent
|
|
WScript.Echo "Schema:", ou.Schema
|
|
WScript.Echo "Description:", ou.Description(0)
|
|
WScript.Echo "LocalityName:", ou.LocalityName
|
|
WScript.Echo "PostalAddress:", ou.PostalAddress
|
|
WScript.Echo "TelephoneNumber:", ou.TelephoneNumber
|
|
WScript.Echo "FaxNumber:", ou.FaxNumber
|
|
WScript.Echo "SeeAlso:", ou.SeeAlso
|
|
WScript.Echo "BusinessCategory:", ou.BusinessCategory
|