> When I use the above classes with get-wmiobject I can get values on
> mentioned above properties, but it does not tell you much, you want to get
> a sample of values, such as get a average value over a period of time such
> as 1 hour. How can I combine the above in a script which will give me the
> average values I am looking for. Is there a script I can download which
> is already setup for performance counters.
> Also is it possible to to get average values for the last 7 days or maybe
> setup a script which will take averages in the next 7 days.
At this point, I would suggest you consider looking at some other tool,
unless this is a pet project of yours.
If you do want to go down this route, you'll need to find some place to log
your data, whether it be a simple text file, Excel, Access or SQL Server.
Then you'll have to deal with data archiving/purging, and the logic you'll
want to use when averaging.