I was looking at your "Get-Stat2" but can't make heads or tails because of my lack of comprehension....
Do you mean all I have to do is set all the variables in the first param block and i'm all set??
What would I have to do if I wanted to do the following.
1. Stat data on specific resource pool on a specific cluster.
2. Data worth one whole day
3. the stat string would be "cpu.usagemhz.average" because it would be a resource pool
4. data interval would be 300 seconds
thank you.