Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Write-Back a DNS ZoneContent of Write-Back a DNS Zone.vbsMD5 Hash: 3D1D74E2637A372B1A445AC0422E184D |
||
' Description: Saves zone data for the DNS zone accounting.fabrikam.com to the appropriate zone file.
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & _ "\root\MicrosoftDNS") Set colItems = objWMIService.ExecQuery _ ("Select * from MicrosoftDNS_Zone Where Name = 'accounting.fabrikam.com'") For Each objItem in colItems objItem.WriteBackZone() Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |