taskkill /f /im w3wp.exeiisreset /STOPtaskkill /f /im w3wp.exe
ping -n 3 127.0.0.1>nuliisreset /startiisreset /start
taskkill /f /im w3wp.exeiisreset /STOPtaskkill /f /im w3wp.exeping -n 3 127.0.0.1>nuliisreset /startiisreset /start
The above three codes can be copied separately to Notepad and taken to the server. Change the suffix to bat and run separately.