Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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


share|improve this question

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

share|improve this answer

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 ?

share|improve this answer
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 posting your answer, you agree to the privacy policy and terms of service.

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