Sign in
Home
Library
Wiki
Learn
Gallery
Downloads
Support
Forums
Blogs
Resources For IT Professionals
United States (English)
Россия (Pусский)
中国(简体中文)
Brasil (Português)
Skip to locale bar
Post an article
Translate this page
Powered by
Microsoft® Translator
Wikis - Page Details
First published by
Girish Goudar
When:
20 Sep 2013 6:04 AM
Last revision by
Girish Goudar
When:
20 Sep 2013 10:26 AM
Revisions:
3
Comments:
0
Options
Subscribe to Article (RSS)
Share this
Can You Improve This Article?
Positively!
Click Sign In to add the tip, solution, correction or comment that will help other users.
Report inappropriate content using
these instructions
.
Wiki
>
TechNet Articles
>
Restart Timer Service in Sharepoint Farm using Powershell
Restart Timer Service in Sharepoint Farm using Powershell
Article
Edit
History
Restart Timer Service in Sharepoint Farm using Powershell
Following is the script to restart the timer service in SharePoint Farm
#region :- Restart Timer on all web front end servers
[array]$servers= Get-SPServer | ? {$_.Role -eq "Application"}
$farm = Get-SPFarm
foreach ($server in $servers)
{
Write-Host "Restarting Timer Job on $server"
$Service = Get-WmiObject -Computer $server.name Win32_Service -Filter "Name='SPTimerV4'"
if ($Service -ne $null)
{
$Service.InvokeMethod('StopService',$null)
Start-Sleep -s 7
$service.InvokeMethod('StartService',$null)
Start-Sleep -s 7
Write-Host "Timer Job successfully restarted on $server"
}
else
{
write-host -ForegroundColor Yellow "Could not find Sharepoint 2010 Timer Service on $server"
}
}
#endregion
en-US
,
FARM
,
PowerShell
,
restart
,
service
,
SharePoint
,
Timer
[Edit tags]
Leave a Comment
Please add 6 and 1 and type the answer here:
Post
Wiki - Revision Comment List(Revision Comment)
Wikis - Comment List