views:

134

answers:

2

We are currently moving from using stsadm to using PowerShell for our SharePoint install scripts.

We have not been able to find an equivilent to this:

stsadm -o -execadmsvcjobs

We have tried putting in a pause, but it varies how long the pause needs to be.

Is there an equivilent command in PowerShell, or could we run this command from PowerShell?

+3  A: 

Have a look at the Start-SPAdmin cmdlet here

According to this article, it is the equivalent of execadmsvcjobs.

Timores
+1  A: 

We ended up using this solution from Sohel's Blog

http://ranaictiu-technicalblog.blogspot.com/2010/05/sharepoint-2010-deployment-powershell.html

Shiraz Bhaiji
timores is correct: start-spadminjob is equivalent of execadmsvcjobs
x0n
@x0n, Start-SPAdminJob, we get an error message that the timer job is running, so it will be run by the timer
Shiraz Bhaiji