Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When i deploy anything to a variety of sharepoint servers i get problems with some packages failing, from what i can see the only error given is as below.

The timer job for this operation has been created, but it will fail because the
administrative service for this server is not enabled. If the timer job is sched
uled to run at a later time, you can run the jobs all at once using stsadm.exe -
o execadmsvcjobs. To avoid this problem in the future, enable the Windows ShareP
oint Services administrative service, or run your operation through the STSADM.e
xe command line utility.

Is this a known problem? I googled for the text but got only one other person with the problem who simply worked round it. I'm trying to batch deploy solutions programmatically and so these errors render the whole code worthless if you have to go back and redo bits by hand afterwards.

Is batch deployment simply not possible?


share|improve this question

migrated from Jan 7 '10 at 9:12

This question came from our site for professional and enthusiast programmers.

Batch deployment is possible

@echo off
for %%f in (*.wsp) do (
    echo File %%f
    "%CommonProgramFiles%\Microsoft Shared\web server extensions\12\BIN\stsadm.exe" -o addsolution -filename "%%f"
    "%CommonProgramFiles%\Microsoft Shared\web server extensions\12\BIN\stsadm.exe" -o deploysolution -name "%%f" -allowgacdeployment -immediate -force

"%CommonProgramFiles%\Microsoft Shared\web server extensions\12\BIN\stsadm.exe" -o copyappbincontent
"%CommonProgramFiles%\Microsoft Shared\web server extensions\12\BIN\stsadm.exe" -o execadmsvcjobs

As you can see in error message, use stsadm -o execadmsvcjobs. And also check IIS if all application pools and web sites are running.

share|improve this answer
i've tried running execadmsvcjobs between each job even just to see if it cures it, im using c# and the object model but the theory is the same surely? – Nathan Jan 7 '10 at 9:03
I've seen the comment ... "Also, in order to stop getting this service related errors, go to the services managment snapin and enable this service: 'Windows SharePoint Services Administration service'" – SteveC Dec 30 '10 at 11:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.