Wie starte ich den SharePoint Timer-Dienst über die Befehlszeile neu?

Antworten:

9

Netzstopp "Windows SharePoint Services Timer"

Nettostart "Windows SharePoint Services Timer"

DanBig
quelle
14

SharePoint 2010:

net stop SPTimerV4
net start SPTimerV4
Crop Duster
quelle
9

Mir ist klar, dass das OP eine Befehlszeilenlösung anfordert, aber mit PowerShell (als Administrator ausführen) ist das Neustarten des Timer-Dienstes so einfach wie das Ausführen von:

restart-service sptimerv4

Sune Rievers
quelle
2
woo Powershell!
Nacht - Monica
Alternativ eins nach dem anderen: Stop-Service SPTimerV4dann Start-Service SPTimerV4
Underverse
5

SharePoint 2013: Netzstopp SPTimerV4 / Netzstart SPTimerV4

SharePoint 2007: Netzstopp SPTimerV3 / Netzstart SPTimerV3

SharePoint 2003: Net Stop SPTimer / Net Start SPTimer

Brandon
quelle
2

Und damit SP2010 / 2013 dies für alle Maschinen tut:

$farm = Get-SPFarm
$farm.TimerService.Instances | foreach { $_.Stop(); $_.Start(); }
Mark Mascolino
quelle
Was ist mit sharepoint.stackexchange.com/questions/110928/… ? Kommentare anzeigen: Nach meinen Erkenntnissen implementiert $ farm.TimerService.Instances weder start () noch stop (), daher sollte dies überhaupt nicht funktionieren.
Kiquenet
1
REM - Save this in a .BAT file and set up a scheduled task that runs it periodically.
REM - This will recycle the SharePoint Timer Service, and also log it in the Event Viewer. 

EVENTCREATE /T INFORMATION /L APPLICATION /ID 777 /D "Starting scheduled task: SP timer restart."

net stop SPTimerV4
net start SPTimerV4

if %ERRORLEVEL% == 0 (
  EVENTCREATE /T INFORMATION /L APPLICATION /ID 777 /D "Scheduled task: Restart succeeded for the SharePoint Timer Service (SPTimerV4 AKA 'SharePoint 2010 Timer').  ERRORLEVEL=%ERRORLEVEL%.  The restart is done by Scheduled Task, which runs the batch file: C:\_________________ every _ hours."
exit /b
) else (
  EVENTCREATE /T ERROR /L APPLICATION /ID 777 /D "Scheduled task: Restart failed for the SharePoint Timer Service (SPTimerV4 AKA 'SharePoint 2010 Timer').  ERRORLEVEL=%ERRORLEVEL%.  Please stop and restart the service manually and investigate the issue preventing the restart. The restart is done by Scheduled Task, which runs the batch file: C:\___________________ every _ hours."
)
EXIT
Ben
quelle