Vista64 powershell disk & processor usage question
Hi,
I am using windows Vista & i want to use powershell which will give me the result of my disk & processor usage. Trying to create a script
which will output to a single text file the disk usage for 2 drives
and the CPU and memory usage over 10 minutes.
I have no idea where to start with the disk usage, it all looks really
complicated!!!
Re: Vista64 powershell disk & processor usage question
Re: Vista64 powershell disk & processor usage question
Ok, when starting the script, taskmanager shows powershell using 15-20% cpu for a brief moment.
Maybe the moment of the poll is slightly different when running the scheduled task manually contra scheduled.. ?
This might not be an ideal use of ps, but on of my first attempts :-)
Re: Vista64 powershell disk & processor usage question
Basically, you should be able to use gwmi and the built-in performance counters to get the data you're looking for. The VBScript example shouldn't be too difficult to recreaate in PowerShell.