Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Create a Route Through DNS RecordContent of Create a Route Through DNS Record.vbsMD5 Hash: 5A3AFA1C55FDE4415241D1889BAAE4EB |
||
' Description: Creates a route through (RT) record on a DNS server.
strDNSServer = "atl-dc-03.fabrikam.com" strContainer = "fabrikam.com" strOwner = "atl-srv-01.fabrikam.com" intRecordClass = 1 intTTL = 600 intPreference = 1 strRouter = "router.fabrikam.com" strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & _ "\root\MicrosoftDNS") Set objItem = objWMIService.Get("MicrosoftDNS_RTType") errResult = objItem.CreateInstanceFromPropertyData _ (strDNSServer, strContainer, strOwner, intRecordClass, _ intTTL, intPreference, strRouter) | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |