Say I have collected these counters with Perfmon:
$MemCounters = (Get-Counter -ListSet Memory).Paths
$hello = Get-Counter -Counter $MemCounters -MaxSamples 2
Now I would like to display the result where I both can see the Counter values but also the timestamp for when the counter is from:
$hello.CounterSamples
$hello.CounterSamples.Timestamp
I would like column 1 to be $hello.CounterSamples.Timestamp and column 2 to be $hello.CounterSamples so that I later can import the data to SQL.