Geeks With Blogs
Hani Amr

Today, I've been working on deploying farm solutions to another farm and I was surprised that it can only be done using STSADM.exe.

Below are the steps that I've done to get it to work :

1. Use the command addsolution  and give it the path of the wsp file which was something like that :

stsadm -o addsolution -filename C:\MySolution.wsp

2. Use the command deploysolution and give the solution name as a parameter like that :

stsadm -o deploysolution -name MySolution.wsp -immediate -allowgacdeployment

If then you encountered an error saying :

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 Microsoft Shar
ePoint Foundation administrative service, or run your operation through the STSA
DM.exe command line utility.

then use the following command to enforce the execution of your deployment:

Start-SPAdminJob

And that's it, you'll have it working as expected :)

Posted on Tuesday, March 8, 2011 4:47 AM Sharepoint 2010 | Back to top

Copyright © H@Ni | Powered by: GeeksWithBlogs.net