How to add a scheduled task .bat file without running cmd.exe
So i had to restart IIS every day at 11 pm . I did not want to run the .bat file in a command prompt so i went looking ....
Put the iisrestart.vbs file into a scheduled job .
Details
C:\scripts\iisrestart.bat
\@echo off
REM - File: iisrestart.bat
echo Restarting IIS...
echo ======================================================
net stop W3SVC
net start W3SVC
echo ======================================================
echo IIS Restarted
C:\scripts\iisrestart.vbs