/ Published in: Windows PowerShell
Expand |
Embed | Plain Text
# check to ensure Microsoft.SharePoint.PowerShell is loaded $snapin = Get-PSSnapin | Where-Object {$_\3.Name -eq 'Microsoft.SharePoint.Powershell'} if ($snapin -eq $null) { Write-Host "Loading SharePoint Powershell Snapin" Add-PSSnapin "Microsoft.SharePoint.Powershell" } Get-SPTimerJob | Where {$_\3.Name -like "*Health*" -and $_\3.Name -like "*-all-*"} | Start-SPTimerJob
You need to login to post a comment.
