Leaked source code of windows server 2003
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

  1. on error resume next
  2. set locator=CreateObject("WbemScripting.SWbemLocatorEx")
  3. set conn=locator.Open("umi://nw01t1/LDAP","nw01t1domnb\administrator", "nw01t1domnb")
  4. set ou = conn.Get (".OU=ajaytest")
  5. WScript.Echo "Name:", ou.Name
  6. WScript.Echo "Class:", ou.Class
  7. WScript.Echo "GUID:", ou.GUID
  8. WScript.Echo "ADSPath:", ou.ADSPath
  9. WScript.Echo "Parent:", ou.Parent
  10. WScript.Echo "Schema:", ou.Schema
  11. WScript.Echo "Description:", ou.Description(0)
  12. WScript.Echo "LocalityName:", ou.LocalityName
  13. WScript.Echo "PostalAddress:", ou.PostalAddress
  14. WScript.Echo "TelephoneNumber:", ou.TelephoneNumber
  15. WScript.Echo "FaxNumber:", ou.FaxNumber
  16. WScript.Echo "SeeAlso:", ou.SeeAlso
  17. WScript.Echo "BusinessCategory:", ou.BusinessCategory