2009-05-31 9 views

Répondre

2

Peut-être que cela pourrait aider: Add DNS Resource

EDIT: Voici un VBScript snippet qui pourrait être utile

var sHostName = "SomeMachine" 
var strRRsufix = ". IN A 192.168.51.200"; //some ip address 
var strRR= sHostName + strRRsufix; 
var objDNS  = GetObject("winmgmts:{impersonationLevel=impersonate}!\\\\.\\root\\MicrosoftDNS"); 
var objRR  = objDNS.Get("MicrosoftDNS_ResourceRecord"); 
var objDNSServer = objDNS.Get("MicrosoftDNS_Server.Name=\".\""); 
objRR.CreateInstanceFromTextRepresentation(objDNSServer.Name, strDomain, strRR); 
+0

hmmm je vais essayer. On dirait que ce n'est pas vraiment simple, surtout avec l'usurpation d'identité?! Mais merci beaucoup de creuser cela, c'est un bon point de départ :) – Alex

Questions connexes