For Monitoring windows 2012/2008 performance,
I need to capture CPU utilization along with top 3 process names consuming CPU at the most, on Windows 2012/2008 Servers over command line.
I've tried the following, but none of them matches as with the TaskManger output.
Get-Counter -Counter "\Processor Information(_Total)\% Processor Time"
Get-WmiObject -class Win32_PerfRawData_PerfOS_Processor
typeperf "\Processor(_Total)\% Processor Time"
Is there any way to Capture CPU utilization which will match the TaskManager output...?