ManagementScope scope = new ManagementScope("\\\\.\\ROOT\\cimv2");
string query = "SELECT * FROM Win32_ScheduledJob";
ManagementObjectSearcher searchCom;
ManagementObjectCollection moCollection;
WqlObjectQuery result = new WqlObjectQuery(query);
searchCom = new ManagementObjectSearcher(scope,result);
moCollection = searchCom.Get();
but it is not returing any result.
can anyone tell me what is wrong in above code?
TIA