IIS Reset on all SP Servers using PowerShell

This script will list all SP Servers and restarts IIS on all of them.

add-PSSnapin microsoft.sharepoint.powershell
$spserver = get-spserver | ?{$_.role -eq “Application”}
foreach ($server in $spserver)
{
write-host “Performing IIS Reset on Server:”$server.name
iisreset $server.Name
}



Categories: Servers

Tags: , , ,

Discover more from SharePointTechnicalSupport

Subscribe now to keep reading and get access to the full archive.

Continue reading