Add-PSSnapin "Microsoft.SharePoint.PowerShell"
#View timer jobs for a web application
Get-SPTimerJob -WebApplication "http://w15-sp"
#Site deletion timer job
Get-SPTimerJob -Identity "job-site-deletion"
#View workflow timerjobs
Get-SPTimerJob | ?{$_.Name -like "*workflow*"}
#View Recent Run Timer Jobs run in last hour
Get-SPTimerJob | ?{$_.LastRunTime -ge (Get-Date).AddHours(-1)}|measure
Measure-Command {Get-SPTimerJob | sort LastRunTime -Descending | select * -first 10}
Get-SPTimerJob | ?{$_.Schedule -like "*weekly*"}
Get-SPTimerJob | ?{$_.Schedule -like "*minutes*"}
Get-SPTimerJob | ?{$_.Schedule -like "*daily*"}
#Count of Jobs running hourly
Get-SPTimerJob | ?{$_.Schedule -like "*hourly*"} | measure
Get-SPTimerJob|sort Name|select Name,Description -Unique| out-gridview
#View timer jobs for a web application
Get-SPTimerJob -WebApplication "http://w15-sp"
#Site deletion timer job
Get-SPTimerJob -Identity "job-site-deletion"
#View workflow timerjobs
Get-SPTimerJob | ?{$_.Name -like "*workflow*"}
#View Recent Run Timer Jobs run in last hour
Get-SPTimerJob | ?{$_.LastRunTime -ge (Get-Date).AddHours(-1)}|measure
Measure-Command {Get-SPTimerJob | sort LastRunTime -Descending | select * -first 10}
Get-SPTimerJob | ?{$_.Schedule -like "*weekly*"}
Get-SPTimerJob | ?{$_.Schedule -like "*minutes*"}
Get-SPTimerJob | ?{$_.Schedule -like "*daily*"}
#Count of Jobs running hourly
Get-SPTimerJob | ?{$_.Schedule -like "*hourly*"} | measure
Get-SPTimerJob|sort Name|select Name,Description -Unique| out-gridview
No comments:
Post a Comment