diff --git a/src/Microsoft.Diagnostics.EventFlow.Inputs.PerformanceCounter/ProcessInstanceNameCache.cs b/src/Microsoft.Diagnostics.EventFlow.Inputs.PerformanceCounter/ProcessInstanceNameCache.cs index 7e6c42ea..6a08a08d 100644 --- a/src/Microsoft.Diagnostics.EventFlow.Inputs.PerformanceCounter/ProcessInstanceNameCache.cs +++ b/src/Microsoft.Diagnostics.EventFlow.Inputs.PerformanceCounter/ProcessInstanceNameCache.cs @@ -49,7 +49,7 @@ public string GetCounterInstanceNameForCurrentProcess(PerformanceCounterConfigur PerformanceCounterCategory category = new PerformanceCounterCategory(counterConfiguration.ProcessIdCounterCategory); string[] processInstanceNames = category.GetInstanceNames() - .Where(inst => inst.StartsWith(currentProcess.ProcessName)) + .Where(inst => inst.ToLowerInvariant().StartsWith(currentProcess.ProcessName.ToLowerInvariant())) .ToArray(); foreach (string processInstanceName in processInstanceNames)