» Blog » Quick Fixes » Reset Print Spooler Service

Lately one of our clients has been having issues with their printers on one particular machine. Rebooting the machine solves everything, but takes quite a while and the downtime is too long. Digging deeper, it appears that simply resetting the Print Spooler system service solves all of the various issues that occur.

The process of going in and resetting system services can easily be too complicated for average end-users, so we put together a simple script for them. Initially the script was written as a .BAT file, but this had limitations because it ran with normal user rights instead of administration rights. The user could right-click and “Run as Administrator”, but this added an extra unneeded and often forgotten step. To take things once step further, we wrote up the simple script using NSIS, which is forced to run as administrator because Windows thinks that it is an installer application.

This script can easily be adapted to any service name on the system.

NSIS Script:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
;--------------------------------
;Configuration
 
  ;General
  !define service "Print Spooler"
  !define name "Reset ${service} Service"
  Name "${name}"
  OutFile "${name}.exe"
 
  SilentInstall silent
 
 
Section "${name}"
  ExecWait 'NET STOP "${service}"'
  ExecWait 'NET START "${service}"'
 
  messageBox MB_OK "${name} has completed"
SectionEnd

Download Reset Print Spooler Service.exe

This entry was posted in Quick Fixes, Source Code. Bookmark the permalink.