SharePoint 2010

SharePoint Shell to restart IIS and Timer services on Farm

To restart IIS on a SharePoint 2010 Farm Save the below in to *.ps1 file cls Write-Host “Loading SharePoint Commandlets” Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue Write-Host -ForegroundColor Green ” Commandlets Loaded … Loading Variables” Write-Host [array]$servers= Get-SPServer | ? {$_.Role -eq “Application”} $farm = Get-SPFarm foreach ($server in $servers) { Write-Host -ForegroundColor Yellow “Attempting to reset…

Read More

Privacy Preference Center