I wrote this a while back, and just blew the dust off it.

Meet get-PerfCounters.ps1  Basically you feed the script a csv file that has “ServerName” on the first line the first.

The script will then loop the servers and get the following perf counters

SystemSystem Up Time
Memory% Committed Bytes In Use
MemoryCommitted Bytes
MemoryCommit Limit
Paging File% Usage
MemoryPool Nonpaged Bytes
MemoryPool Paged Bytes

You can see from the code that it is very easy to add other counters if you want to get them.

What is then does is output the counter to file in a dated folder.

The final bit, that I am really proud of, is it will check free diskspace.  I uses the Logical Disk Perf counter and will pick up ALL logical drives.  It will event alert you if if the free space falls beloe a value.

 Well check it out and let me know what you think

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.