Re: What do i need to change in this script to make it detect my DNS r
From: Roger Abell (mvpNOSpam_at_asu.edu)
Date: 11/21/04
- Next message: Roger Abell: "Re: Denny SYNCHRONIZE to IUSR_%COMPUTERNAME% causes remote access to prompt for username"
- Previous message: Roger Abell: "Re: What do i need to change in this script to make it detect my DNS r"
- In reply to: Gary E Help: "What do i need to change in this script to make it detect my DNS r"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 21 Nov 2004 08:33:03 -0700
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dns/dns/installing_the_provider.asp
and by the way, make sure you use cscript engine with that
script you displayed !!
--
Roger Abell
Microsoft MVP (Windows Server System: Security)
MCSE (W2k3,W2k,Nt4) MCDBA
"Gary E Help" <Gary E Help@discussions.microsoft.com> wrote in message
news:D334D500-EFA0-4832-952A-1CEBF1D950E0@microsoft.com...
> strComputer = "."
> Set objWMIService = GetObject("winmgmts:" _
> & "{impersonationLevel=impersonate}!\\" & strComputer & _
> "\root\MicrosoftDNS")
>
> Set colItems = objWMIService.ExecQuery("Select * from MicrosoftDNS_AType")
>
> For Each objItem in colItems
> Wscript.Echo "IP Address: " & objItem.IPAddress
> Wscript.Echo "Owner Name: " & objItem.OwnerName
> Wscript.Echo "Container Name: " & objItem.ContainerName
> Wscript.Echo "DNS Server Name: " & objItem.DnsServerName
> Wscript.Echo "Domain Name: " & objItem.DomainName
> Wscript.Echo "Record Class: " & objItem.RecordClass
> Wscript.Echo "Record Data: " & objItem.RecordData
> Wscript.Echo "Text Representation: " & objItem.TextRepresentation
> Wscript.Echo "Time-to-Live: " & objItem.TTL
> Wscript.Echo
> Next
- Next message: Roger Abell: "Re: Denny SYNCHRONIZE to IUSR_%COMPUTERNAME% causes remote access to prompt for username"
- Previous message: Roger Abell: "Re: What do i need to change in this script to make it detect my DNS r"
- In reply to: Gary E Help: "What do i need to change in this script to make it detect my DNS r"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|