Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Create a Mail Group DNS RecordContent of Create a Mail Group DNS Record.vbsMD5 Hash: 077389EB34DFBA48F018E442BC780826 |
||
' Description: Creates a mail group (MG) record on a DNS server.
strDNSServer = "atl-dc-03.fabrikam.com" strContainer = "fabrikam.com" strOwner = "admin.fabrikam.com" intRecordClass = 1 intTTL = 600 strMailbox = "netadmins.fabrikam.com" strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & _ "\root\MicrosoftDNS") Set objItem = objWMIService.Get("MicrosoftDNS_MGType") errResult = objItem.CreateInstanceFromPropertyData _ (strDNSServer, strContainer, strOwner, intRecordClass, intTTL, strMailbox) | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |