how to disable Timer job definations?
Hello All, I need to disable timer job definations, i know that we can disable these timer jobs in Central Administrator. But i want to do this using stsadm command or through coding, i dont want to use central administrator. Please let me know any valuable suggestions! Thanks,N i T i N
March 9th, 2010 4:58pm

By code you can try something like this: foreach (SPJobDefinition job in SPContext.Current.Site.WebApplication.JobDefinitions) { if ((job.Name == "searchedJob")){ job.IsDisabled = true;job.Update(); } }Hope it helps! Enrique Blanco PMP, Consultant www.eblanco.com
Free Windows Admin Tool Kit Click here and download it now
March 9th, 2010 7:10pm

Hello, Thanks for your reply, Can you please give in detail please, i didn't where and how to write this code. N i T i N
March 10th, 2010 9:11am

Hi,You can create a custom stsadm command by following this: http://msdn.microsoft.com/en-us/library/bb417382.aspxHope it helpsEnrique Blanco PMP, Consultant www.eblanco.com
Free Windows Admin Tool Kit Click here and download it now
March 10th, 2010 2:15pm

Thanks, These lines helps me disable timer jobs! Created console application for this. N i T i N
March 11th, 2010 10:35am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics