Search code examples
c#sharepointdeploymentstsadm

Object Model version of stsadm -o execsvcadmjobs command


What is the equivalent command to perform any outstanding actions? Thanks


Solution

  • It's a quiet complex series of commands which starts off by calling a method on an internal static class (SPTimerStore), so in order to reproduce it you'll have to reproduce at least also this method.

    If you really want to see what's going on you can open stsadm.exe in .Net Reflector it has a class for each of the out-of-the-box operations where the run method is the one called at execution time