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?
This way, we can create solutions that have to be iteratively run to process logic at regular intervals. However, in the case of SharePoint Online, Native Timer Jobs cannot be used. Though we can use Windows Service/Task Scheduler to simulate Timer Jobs in SharePoint Online, it is still not a complete cloud solution.
The SharePoint Central Administration website has a Timer Job Status page on which you can check the status of a timer job and a Job Definitions page on which you can edit the timer job definition. You can find links to these pages in Central Administration, on the Monitoring page, in the Timer Jobs section.
To start a timer job, execute the Start-SPTimerJob cmdlet with the Identity of the timer job or a timer job variable. Listing 4.26 shows a sample command line. In this scenario, the timer job kicks off when you start it manually. This is the same as selecting the Run Now button in Central Administration.
Have a look at the Start-SPAdminJob
cmdlet here
According to this article, it is the equivalent of execadmsvcjobs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With