Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Create a Responsible Person DNS RecordContent of Create a Responsible Person DNS Record.vbsMD5 Hash: B622A860C1C6A7A6F2EC9C33E00061D8 |
||
' Description: Creates a responsible person (RP) record on a DNS server.
strDNSServer = "atl-dc-03.fabrikam.com" strContainer = "fabrikam.com" strOwner = "atl-srv-01.fabrikam.com" intRecordClass = 1 intTTL = 600 strRPMAilbox = "admin.fabrikam.com" strText = "Network Administrator, (555) 555-1219" strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & _ "\root\MicrosoftDNS") Set objItem = objWMIService.Get("MicrosoftDNS_RPType") errResult = objItem.CreateInstanceFromPropertyData _ (strDNSServer, strContainer, strOwner, intRecordClass, _ intTTL, strRPMailbox, strText) | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |