Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Create an ATM Address to Name DNS RecordContent of Create an ATM Address to Name DNS Record.vbsMD5 Hash: 1EB6AA0786847E1992D57954CBD1633D |
||
' Description: Creates an ATM address to name (ATMA) record on a DNS server.
strDNSServer = "atl-dc-03.fabrikam.com" strContainer = "fabrikam.com" strOwner = "atm.fabrikam.com" intRecordClass = 1 intTTL = 600 intFormat = 1 strATMAddress = "47.0079.00010200000000000000.00a03e000002.00" strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & _ "\root\MicrosoftDNS") Set objItem = objWMIService.Get("MicrosoftDNS_ATMAType") errResult = objItem.CreateInstanceFromPropertyData _ (strDNSServer, strContainer, strOwner, intRecordClass, intTTL, _ intFormat, strATMAddress) | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |