Posted By

scholli on 10/27/10


Tagged

sharepoint


Versions (?)

Run All Health Rules Timer Jobs


 / Published in: Windows PowerShell
 

  1. # check to ensure Microsoft.SharePoint.PowerShell is loaded
  2.  
  3. $snapin = Get-PSSnapin | Where-Object {$_\3.Name -eq 'Microsoft.SharePoint.Powershell'}
  4.  
  5. if ($snapin -eq $null)
  6. {
  7. Write-Host "Loading SharePoint Powershell Snapin"
  8. Add-PSSnapin "Microsoft.SharePoint.Powershell"
  9. }
  10.  
  11. Get-SPTimerJob | Where {$_\3.Name -like "*Health*" -and $_\3.Name -like "*-all-*"} | Start-SPTimerJob

Report this snippet  

You need to login to post a comment.