Skip to content

TYPEPERF Windows command

The Windows typeperf command is a powerful tool used to collect performance data from various system components. By specifying specific counters and intervals, users can gather valuable information to analyze system performance and troubleshoot issues. Typeperf can be used in scripts and batch files to create custom monitoring tools tailored to specific needs. With its flexibility and ease of use, the typeperf command is a valuable asset for system administrators and power users looking to optimize system performance.

TYPEPERF Syntax:

Terminal window
typeperf [options] [count] [interval]

Options:

OptionDescription
-?Displays the typeperf command syntax
-qQueries the computer for performance data
-sc Specifies the remote computer to query
-si Specifies the remote computer to query
-o Specifies the output file for the data
-f Specifies the format for the output
-cfg Enables the collection of performance data from a configuration file

Parameters:

ParameterDescription
countSpecifies the number of samples to display
intervalSpecifies the time in seconds between each sample

TYPEPERF CMD Examples:

Monitor Processor Usage

Terminal window
typeperf "\Processor(_Total)\% Processor Time"

Retrieves the percentage of processor usage for all processors on the system.

Monitor Memory Usage

Terminal window
typeperf "\Memory\Available MBytes"

Displays the total amount of physical memory available on the system in megabytes.

Monitor Disk Usage

Terminal window
typeperf "\LogicalDisk(C:)\% Free Space"

Shows the percentage of free space on the C: drive.

Monitor Network Interface Traffic

Terminal window
typeperf "\Network Interface(*)\Bytes Total/sec"

Monitors the total number of bytes transmitted and received per second on all network interfaces.

Monitor Process ID

Terminal window
typeperf "\Process(EXCEL)\ID Process"

Gets the process ID of the Excel application.

Monitor System Uptime

Terminal window
typeperf "\System\System Up Time"

Shows the system uptime in seconds.

How do I use typeperf in Windows?

To use the typeperf command in Windows, execute the following command:

Terminal window
typeperf --option <value>

What is the purpose of the typeperf command in Windows?

The typeperf command in Windows is used to retrieve performance counter data for monitoring system performance.

How can I display a list of available performance objects using typeperf?

To display a list of available performance objects with typeperf, use the following command:

Terminal window
typeperf /q

How do I specify the interval for data collection with typeperf in Windows?

To specify the interval for data collection using typeperf, you can use the “-si” or “—sampleinterval” option followed by the desired interval in seconds. For example:

Terminal window
typeperf "\Processor(_Total)\% Processor Time" -si 5

Is it possible to save the collected data to a log file with typeperf?

Yes, you can save the collected data to a log file by using the “/o” or “—output” option followed by the path to the output file. For example:

Terminal window
typeperf "\Memory\Available MBytes" -o C:\Logs\memory_log.csv

How can I filter the performance counters to monitor specific system components with typeperf?

To filter the performance counters and monitor specific system components, you can specify them in the command. For example:

Terminal window
typeperf "\LogicalDisk(*)\Avg. Disk Bytes/Write" "\LogicalDisk(*)\Avg. Disk Bytes/Read"

How do I stop the data collection process with typeperf in Windows?

To stop the data collection process with typeperf, you can press “Ctrl + C” in the command prompt where typeperf is running.

How can I format the output of the typeperf command in Windows?

To format the output of the typeperf command, you can use the “-sc” or “—scale” option to specify the scale factor for the data. For example:

Terminal window
typeperf "\Processor(_Total)\% Processor Time" -sc 1

Applications of the TYPEPERF Command

  • Monitoring system performance
  • Collecting performance data for analysis
  • Troubleshooting performance-related issues
  • Creating custom performance monitoring profiles
  • Automating performance monitoring tasks