Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Win32_ScheduledJob is not returning any result in c#
Sumit Kumawat
Nov 11 2017 4:11 AM
196
Reply
hi all i am using below code to fetch the All Task Schedule in window 7
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
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
how to convert the xml page into asp using html
Please rectify this C# error I tried using google also.