Help Managing DNS over LDAP via VBScript...

Discussion in 'DNS Server' started by Mb, May 24, 2006.

  1. Mb

    Mb Guest

    I would like to delete an object in dns via LDAP in vbscript...

    Is there a way that this can be done? I can bind to the object and dump out
    attributes using:

    Set objDNS =
    GetObject("LDAP://DC="&strHostName&",DC="&strZoneName&","&strCommon&"")


    When I call objDNS.Delete, I dont know what parameters I need to pass in...

    I am passing in:

    objDNS.Delete "dnsNode", "DC="&strHostName&""

    I get back:

    Microsoft VBScript runtime error: Wrong number of arguments or invalid
    property assignment: 'objDNS.Delete'


    Any advice?

    Thank you,
    Mb
     
    Mb, May 24, 2006
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.