Windows Server 2012

How to Add Disk Performance Counters to Windows Server 2012 R2

In Windows Server 2012 R2, if you switch to the Performance tab in Task Manager, disk performance counters are no longer displayed by default. In this Ask the Admin, I’ll show you how to add the disk performance counters back to Task Manager.

Enabling Disk Performance Counters

Disk performance counters were removed from Task Manager’s Performance tab in Windows Server 2012 R2 because of the performance impact when scanning disks for performance data. If you look through the menus in Task Manager you won’t find anyway to enable disk performance counters. If you want to restore the ability to see disk performance on the Performance tab, as is default for Windows Server 2012, you can run the following command in an elevated command prompt.

  • Make sure that Task Manager is closed on the server.
  • Switch to the Start screen by pressing the Windows key.
  • Type cmd and wait for it to appear in the search results on the right.
  • With Command Prompt selected in the search results, press CTRL+SHIFT+ENTER to start a command prompt with elevated privileges. Give your consent, or enter administrative privileges, if prompted by User Account Control (UAC).
  • In the new command prompt window on the desktop, type diskperf –y and press Enter.
  • Now open Task Manager by right-clicking on the desktop Task Bar, and select Task Manager from the menu.
Disk performance counters in Windows Server 2012 R2
Disk performance counters in Windows Server 2012 R2

You will now be able to see disk performance counters on the Performance tab in Task Manager. To reverse this process, follow the instructions above and type diskperf – n instead of diskperf –y. You might decide to only temporarily enable disk performance counters in Task Manager for troubleshooting purposes. On a server where performance is critical, keeping disk performance counters disabled can help improve responsiveness if Task Manager is used a lot for other troubleshooting tasks.

Sponsored Content

Passwords Haven’t Disappeared Yet

123456. Qwerty. Iloveyou. No, these are not exercises for people who are brand new to typing. Shockingly, they are among the most common passwords that end users choose in 2021. Research has found that the average business user must manually type out, or copy/paste, the credentials to 154 websites per month. We repeatedly got one question that surprised us: “Why would I ever trust a third party with control of my network?

Related Topics:


Don't have a login but want to join the conversation? Sign up for a Petri Account

Comments (0)

Leave a Reply

IT consultant, Contributing Editor @PetriFeed, and trainer @Pluralsight. All about Microsoft, Office 365, Azure, and Windows Server.
Live Webinar - Thursday, December 2nd! Active Directory Masterclass: AD Configuration Strategies for Stronger SecurityREGISTER NOW - Thursday, December 2, 2021 @ 1 pm ET

Active Directory (AD) is leveraged by over 90% of enterprises worldwide as the authentication and authorization hub of their IT infrastructure—but its inherent complexity leaves it prone to misconfigurations that can allow attackers to slip into your network and wreak havoc. 

Join this session with Microsoft MVP and MCT Sander Berkouwer, who will explore:

  • Whether you should upgrade your domain controllers to Windows Server
    2019 and beyond
  • Achieving mission impossible: updating DCs within 48 hours
  • How to disable legacy protocols and outdated compatibility options in
    Active Directory

Sponsored by: