How to delete a DNS A Type record using script/WMI

Danny Mayer mayer at gis.net
Sun Jun 13 20:14:03 UTC 2004


Wrong conference. You need to ask in a microsoft conference.
Also this looks like VB.

Danny

At 11:11 PM 6/8/2004, Samir Pandey wrote:
>Hello,=20
>
>I am using the following code to create a A type DNS record.=20
>
>Dim objMgmScope As New
>ManagementScope("\\DNSServer\root\MicrosoftDNS")
>Dim objPath As New ManagementPath("MicrosoftDNS_AType")
>Dim objOptions As New ObjectGetOptions
>Dim objClass As New ManagementClass(objMgmScope, objPath, objOptions)
>Dim inParams As ManagementBaseObject =3D
>objClass.GetMethodParameters("CreateInstanceFromPropertyData")
>  inParams("DnsServerName") =3D DNSServer
>  inParams("ContainerName") =3D DNSZone
>  inParams("OwnerName") =3D ResourceName
>  inParams("IPAddress") =3D IPAddress
>  Dim outParams As ManagementBaseObject =3D=20
>objClass.InvokeMethod("CreateInstanceFromPropertyData", inParams,
>Nothing)
>
>This works just perfect.
>Now how can i delete such record using a similar script. I cann't find
>any solution on Microsoft site or rather anywhere.
>
>thanks,
>Samir



More information about the bind-users mailing list