WMI call takes too much time when system Starts/ReStarts
问题 I want to get the path of the Windows Service, var managementObjectSearcher = new ManagementObjectSearcher("Select * from Win32_Service where serviceName = MyService"); this code is written of the constructor of some other service... everything works fine when system is UP and running but if i restart the system put the StopWatch class for this call and it shows that it shows that the service takes 35-45 seconds to start because of this call.. Any suggestions to improve the performance on