Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List Host Information DNS RecordsContent of List Host Information DNS Records.vbsMD5 Hash: 7F36A4C1228C11A5D61CA63C2DD4E800 |
||
' Description: Returns data about the host information (HINFO) records on a DNS server.
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & _ "\root\MicrosoftDNS") Set colItems = objWMIService.ExecQuery("Select * from MicrosoftDNS_HINFOType") For Each objItem in colItems Wscript.Echo "Owner Name: " & objItem.OwnerName Wscript.Echo "Container Name: " & objItem.ContainerName Wscript.Echo "CPU: " & objItem.CPU Wscript.Echo "DNS Server Name: " & objItem.DnsServerName Wscript.Echo "Domain Name: " & objItem.DomainName Wscript.Echo "Operating System: " & objItem.OS Wscript.Echo "Record Class: " & objItem.RecordClass Wscript.Echo "Record Data: " & objItem.RecordData Wscript.Echo "Text Representation: " & objItem.TextRepresentation Wscript.Echo "Timestamp: " & objItem.Timestamp Wscript.Echo "Time-to-Live: " & objItem.TTL Wscript.Echo Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |