Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Age All DNS RecordsContent of Age All DNS Records.vbsMD5 Hash: 7E6FA3D3C588554573630BF58E8CF12D |
||
' Description: Enables aging of all records (except name server and start of authority records) in the DNS zone accounting.fabrikam.com.
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 errResult = objItem.AgeAllRecords(,1) Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |