Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Update a DNS ZoneContent of Update a DNS Zone.vbsMD5 Hash: A98286F670F0CF16394390ED7FEFDE65 |
||
' Description: Forces an update of the DNS zone accounting.fabrikam.com from Active Directory.
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.UpdateFromDS() Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |