Source: MSExchange Common
Message: Performance counter updating error. Counter name is Per-Tenant KeyToRemoveBudgets Cache Size, category name is MSExchangeRemotePowershell. Optional code: 3. Exception: The exception thrown is: System.InvalidOperationException: The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.\
When you check the Exchange Setup log (ExchangeSetup.log), you see the following information:
To resolve this issue, manually load the missing counters. To do this, follow these steps:
- Close Performance Monitor, and then stop any other monitoring services that might be trying to use the missing counters.
- In Exchange Management Shell, type the following command, and then press Enter:
- Run New-PerfCounters to add the performance counters. For example, if you want to load the performance counters that are defined in GlsPerformanceCounters.xml, run the following cmdlet:
New-PerfCounters –definitionfilename "C:\Program Files\Microsoft\Exchange Server\V15\Setup\Perf\GlsPerformanceCounters.xml"