PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Noms de domaine > ms.public.win.server.dns > Script to list add all domain zones
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Script to list add all domain zones

Réponse
 
LinkBack Outils de la discussion
Vieux 21/12/2006, 07h39   #1
Ahmad
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Script to list add all domain zones

Hi !
i've setup a new server that should be working as secondary for 2 other
servers.... so it's very terrible to write eache zone my self to be add to
as secondary forward or reverse zone from the original ones.
so i need to know where to find a script that list all the zones (primary)
from a spesific dns & another script to automatically add them as secondary
in my new one.
thanks for

A.Sabry


  Réponse avec citation
Vieux 21/12/2006, 08h14   #2
Ahmad
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Script to list add all domain zones

i got this code from technet:
strComputer = "."
Set objWMIService = GetObject("winmgmts:" &
"{impersonationLevel=impersonate}!\\" & strComputer & "\root\MicrosoftDNS")
Set colItems = objWMIService.ExecQuery("Select * from rippleegypt.com")
For Each objItem in colItems
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "Zone Type: " & objItem.ZoneType
Wscript.Echo "Aging: " & objItem.Aging
Wscript.Echo "Allow Update: " & objItem.AllowUpdate
Wscript.Echo "Autocreated: " & objItem.AutoCreated
Wscript.Echo "Available For Scavenge Time: " & _
objItem.AvailForScavengeTime
Wscript.Echo "Container Name: " & objItem.ContainerName
Wscript.Echo "Data File: " & objItem.DataFile
Wscript.Echo "Disable WINS Record Replication: " & _
objItem.DisableWINSRecordReplication
Wscript.Echo "DNS Server Name: " & objItem.DnsServerName
Wscript.Echo "Directory Service-Integrated: " & objItem.DsIntegrated
Wscript.Echo "Forwarder Slave: " & objItem.ForwarderSlave
Wscript.Echo "Forwarder Timeout: " & objItem.ForwarderTimeout
Wscript.Echo "Last Successful SOA Check: " & _
objItem.LastSuccessfulSoaCheck
Wscript.Echo "LastSuccessful Xfr: " & objItem.LastSuccessfulXfr
Wscript.Echo "Local Master Servers: " & objItem.LocalMasterServers
Wscript.Echo "Master Servers: " & objItem.MasterServers
Wscript.Echo "No-Refresh Interval: " & objItem.NoRefreshInterval
Wscript.Echo "Notify: " & objItem.Notify
Wscript.Echo "Notify Servers: " & objItem.NotifyServers
Wscript.Echo "Paused: " & objItem.Paused
Wscript.Echo "Refresh Interval: " & objItem.RefreshInterval
Wscript.Echo "Reverse: " & objItem.Reverse
Wscript.Echo "Scavenge Servers: " & objItem.ScavengeServers
Wscript.Echo "Secondary Servers: " & objItem.SecondaryServers
Wscript.Echo "Secure Secondaries: " & objItem.SecureSecondaries
Wscript.Echo "Shutdown: " & objItem.Shutdown
Wscript.Echo "Use Wins: " & objItem.UseWins
Wscript.Echo
Next
"Ahmad" <askme> wrote in message
news:%23hq1mQNJHHA.1008@TK2MSFTNGP06.phx.gbl...
> Hi !
> i've setup a new server that should be working as secondary for 2 other
> servers.... so it's very terrible to write eache zone my self to be add to
> as secondary forward or reverse zone from the original ones.
> so i need to know where to find a script that list all the zones (primary)
> from a spesific dns & another script to automatically add them as
> secondary in my new one.
> thanks for
>
> A.Sabry
>



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 12h21.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12008 seconds with 10 queries