Diskperf

Updated: April 17, 2012

Applies To: Windows 7, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP

In Windows 2000, physical and logical disk performance counters are not enabled by default.

Diskperf is included in Windows XP, Windows Server 2003, Windows Server 2008, Windows Vista, Windows Server 2008 R2, and Windows 7 so that it can be used to remotely enable or disable physical or logical disk performance counters on computers running Windows 2000.

Syntax

diskperf [-Y[D|V] | -N[D|V]] [\\computername]

Options

Option Description

-?

Displays context sensitive help.

-Y

Start all disk performance counters when the computer restarts.

-YD

Enable disk performance counters for physical drives when the computer restarts.

-YV

Enable disk performance counters for logical drives or storage volumes when the computer restarts.

-N

Disable all disk performance counters when the computer restarts.

-ND

Disable disk performance counters for physical drives when the computer restarts.

-NV

Disable disk performance counters for logical drives or storage volumes when the computer restarts.

\\<computername>

Specify the name of the computer where you want to enable or disable disk performance counters.