Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Create an Andrew File System Database Server DNS RecordContent of Create an Andrew File System Database Server DNS Record.vbsMD5 Hash: 6458EB93A634FD74EBC3C7647749169C |
||
' Description: Creates an Andrew File System Database Server (AFSDB) record on a DNS server.
strDNSServer = "atl-dc-03.fabrikam.com" strContainer = "fabrikam.com" strOwner = "atl-srv-01.fabrikam.com" intRecordClass = 1 intTTL = 600 intSubtype = 1 strServerName = "afs.fabrikam.com" strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & _ "\root\MicrosoftDNS") Set objItem = objWMIService.Get("MicrosoftDNS_AFSDBType") errResult = objItem.CreateInstanceFromPropertyData _ (strDNSServer, strContainer, strOwner, intRecordClass, intTTL, _ intSubType, strServerName) | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |