Learn More Download Free Trial Pricing & Buy

Archive for the ‘printing terminal services’ Category


resurrection from hangup of spoolsv

Yesterday one of the server hanged because of printer spooler service
Nobody is able to logon server, when users try to logon there is just blank screen they would get.

Nobody is able to access console because server is in remote datacenter, and VNC access is not working because. How I was able to gain access to server?

Because I know what spoolsv is the main reason server hanged I have logged on member terminal server. I needed to get access to hanged server services. Opening services.msc and connecting to remote terminal server gave me services from hanged computer. Then just simple restart of printer spooler bring server to life.


If spoolsv is in error state

Yesterday I have explained how to restart spoolsv server (printer spooler) if it exceeds 40MB of memory.
Sometimes spooler service will hang and there will not be high memory consumption, so we would need to detect that problem also. For this scenario I have written following script:
net start | findstr /i Spooler > nul
if not errorlevel 1 goto end
net stop Spooler
sleep 2
net start Spooler
:end
exit

I created schedule task to run this script under system every minute, for 24 hours a day. If spoolsv is OK script will just close, if it is in error state script will restart printer spooler service.