Using a script (powershell for example) How can i get the total Queries on a DNS Server (Windows Server 2003 - Active Directory Environment) ?



Try the dnscmd and it's statistics option. It's part of the resource kit.


For now

-i use PERFMON with the DNS Counter: Total Query Received/sec

-Perform for 24hours

-output in CSV file

-Open with Excel and SUM all the value

Any other ways to script this step ?

  • There's a WMI DNS provider, but I don't know if it would give this anyways. Does your perfmon approach work? Using PowerShell to read in the CSVs and summing the values would be easy. Answer the perfmon question and I can show how to sum once I test to see the format of the CSV. – Marco Shaw Jan 28 '10 at 21:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.