Skip to content

Instantly share code, notes, and snippets.

@kasuken
Created June 11, 2019 04:58
Show Gist options
  • Save kasuken/35b0c3c62e973280753be6e2d22b9a58 to your computer and use it in GitHub Desktop.
Save kasuken/35b0c3c62e973280753be6e2d22b9a58 to your computer and use it in GitHub Desktop.
A CMD script to restart all SharePoint services and IIS (it works on SP2010, SP2013, SP2016, SP2019)
@echo off
@echo Stopping Sharepoint services...
@echo Restarting The SharePoint Timer Service...
net stop SPTimerV4
net start SPTimerV4
@echo Restarting The SharePoint Administration Service...
net stop SPAdminV4
net start SPAdminV4
@echo Restarting IIS...
iisreset -restart -noforce
echo Timer service, admin service, and IIS have been restarted.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment