I need to extract the RAM details in a formatted csv file.
I am using this
$memory = (get-Counter -ListSet memory).paths
Get-Counter -Counter $memory -SampleInterval 1
This shows me all the counters… I need just the basic ones ( the ones that shows on the task manager console - Commit, In Use, pages, Total, Non Paged)
Can someone help me extracting the details in a CSV…