Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Create a Primary DNS ZoneContent of Create a Primary DNS Zone.vbsMD5 Hash: 228604FF0AE773D9FC925D8CC5D43EFE |
||
' Description: Creates a primary DNS zone named accounting.fabrikam.com on a DNS server.
strZoneName = "accounting.fabrikam.com" intPrimaryZone = 1 strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & _ "\root\MicrosoftDNS") Set objItem = objWMIService.Get("MicrosoftDNS_Zone") errResult = objItem.CreateZone(strZoneName, intPrimaryZone) | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |