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
703 B

  1. Out "Starting..."
  2. Set oLoc = CreateObject("WbemScripting.SWbemLocatorEx")
  3. Out "Created LocatorEx"
  4. Set oObj = oLoc.Open("umi://nw01t1/ldap/.DC=com/.DC=microsoft/.DC=nttest/.DC=nw01t1dom/.ou=VB_UMI_Test", "nw01t1domnb\administrator", "nw01t1domnb")
  5. 'Set oObj = oLoc.Open("umi://nw01t1/ldap", "nw01t1domnb\administrator", "nw01t1domnb")
  6. Out "Bound to umi://nw01t1/ldap/.ou=VB_UMI_Test"
  7. Out "Got Object " & oObj.Path_
  8. sName = "organizationalUnit.ou=Test" & CLng((now()-Int(now()))*24*60*60)
  9. Set oChild = oObj.CreateInstance_(sName)
  10. oChild.Put_
  11. Out "Created " & oChild.Path_
  12. Out "Attempting Delete"
  13. oObj.DeleteInstance_ sName
  14. Out "Succeeded"
  15. Sub Out(sLine)
  16. WScript.Echo sLine
  17. End Sub