Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Create a Mail Information DNS RecordContent of Create a Mail Information DNS Record.vbsMD5 Hash: 0D2B863E2F942B67CD67B1EAAA9AF51E |
||
' Description: Creates a mail information (MI) record on a DNS server.
strDNSServer = "atl-dc-03.fabrikam.com" strContainer = "fabrikam.com" strOwner = "administrator.fabrikam.com" intRecordClass = 1 intTTL = 600 strAdminMailbox = "dnsadmin.fabrikam.com" strErrorMailbox = "support.fabrikam.com" strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & _ "\root\MicrosoftDNS") Set objItem = objWMIService.Get("MicrosoftDNS_MInfoType") errResult = objItem.CreateInstanceFromPropertyData _ (strDNSServer, strContainer, strOwner, intRecordClass, intTTL, _ strAdminMailbox, strErrorMailbox) | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |