Re: What do i need to change in this script to make it detect my DNS r

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Roger Abell (mvpNOSpam_at_asu.edu)
Date: 11/21/04


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


Relevant Pages

  • Re: xp pro encrypted folder and Access
    ... Microsoft MVP (Windows Server System: Security) ... MCSE MCDBA ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Server problems
    ... Microsoft MVP (Windows Server System: Security) ... MCSE MCDBA ...
    (microsoft.public.windowsxp.security_admin)
  • Re: win 2000 vs win 2003
    ... > Microsoft MVP (Windows Server System: Security) ... > MCSE MCDBA ...
    (microsoft.public.cert.exam.mcse)
  • Re: Runas command
    ... Roger Abell ... Microsoft MVP (Windows Server System: Security) ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Security help???? thanks
    ... > Thanks again CHRIS ... >>Microsoft MVP (Windows Server System: Security) ...
    (microsoft.public.windowsxp.security_admin)