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

  1. set conn = GetObject("umi:///winnt/computer=alanbos4")
  2. WScript.Echo typename(conn)
  3. Out "Starting..."
  4. Set oLoc = CreateObject("WbemScripting.SWbemLocatorEx")
  5. Out "Created LocatorEx"
  6. Set oSvc = oLoc.Open("umi://nw01t1/ldap", "nw01t1domnb\administrator", "nw01t1domnb")
  7. Out "Bound to umi://nw01t1/ldap"
  8. Set oObj = oSvc.Get(".ou=VB_UMI_Test")
  9. Out "Got Object " & oObj.Path_
  10. sName = "organizationalUnit.ou=Test" & CLng((now()-Int(now()))*24*60*60)
  11. Set oChild = oObj.CreateInstance_(sName)
  12. oChild.Put_
  13. Out "Created " & oChild.Path_
  14. Sub Out(sLine)
  15. WScript.Echo sLine
  16. End Sub