Problem

Performance Counter güncelleme işleminde hata alıyorsa, hata kodu 106 çıktısını alırsınız.

Hata içeriği

Log Name:      Application
Source:        MSExchange Common
Date:          11/29/2016 12:24:28 PM
Event ID:      106
Task Category: General
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      EX16B.contoso.com
Description:
Performance counter updating error. Counter name is Percentage of Failed Offline GLS Requests in Last Minute, category name is MSExchange Global Locator OfflineGLS Processes. Optional code: 3. Exception: System.InvalidOperationException: The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.
   at System.Diagnostics.PerformanceCounter.InitializeImpl()
   at System.Diagnostics.PerformanceCounter.get_RawValue()
   at Microsoft.Exchange.Diagnostics.ExPerformanceCounter.set_RawValue(Int64 value)

Çözüm

Aşağıdaki scripti EMC ile çalıştırarak Exchange dizininde yer alan Performans Counter’ı yeniden yükleyecek. İşlemler bir kaç dakika sürebilir. Sonrasında ilgili hata ortadan kalkmış olacaktır.

Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Setup $perfcounters = Get-ChildItem "$env:ExchangeInstallPath\Setup\Perf\" *.xml | Where-Object {!($_.psiscontainer)} $perfcount = $perfcounters.Count foreach ($perfcounter in $perfcounters) { New-PerfCounters -DefinitionFileName $perfcounter.FullName -ErrorAction SilentlyContinue Write-Progress -Activity "Reloading $perfcount Exchange Performance Counters" -PercentComplete (($i++ / $perfcount) * 100)}

pcounter 106

Yazar