TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sumit Kumawat
NA
454
413.6k
Win32_ScheduledJob is not returning any result in c#
Nov 11 2017 4:11 AM
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
Reply
Answers (
1
)
how to convert the xml page into asp using html
Please rectify this C# error I tried using google also.