|
| Re: Is there a way to stop and start the IIS server from command prompt |
 |
Thu, 3 Apr 2008 01:34:08 +0000 |
I know it's old school, but if you turn this into a .bat file and schedule it to
run, you can restart IIS and SQL server + SQL Agent everynight:
@echo off
REM - File: iisrestart.bat
echo Restarting IIS...
echo ======================================================
net stop W3SVC
net start W3SVC
echo ======================================================
echo IIS Restarted
echo Restarting SQL...
echo ======================================================
net stop "SQL Server Agent (MSSQLSERVER)"
net stop MSSQLSERVER
net start MSSQLSERVER
net start "SQL Server Agent (MSSQLSERVER)"
echo ======================================================
echo SQL Restarted
|
| Post Reply
|
|
|
|
|
|
|
|
|
|