Start and Stop the Print Spooler Service

Stops and then restarts the Print Spooler service.

 
 
 
 
 
2 Star
(3)
Add to favorites
Printing
8/10/2009
E-mail Twitter del.icio.us Digg Facebook
  • Not VBScript
    2 Posts | Last post June 08, 2010
    • It looks like DOS Command to me.
    • I agree with Andrew, this would be from from the cmd prompt, and is not a "script".
      
      Here's a sample VBScript:
      
      strComputer = "."
      Set objShell = CreateObject("WScript.Shell")
      objShell.Run "Net Stop Spooler", 0, True
      objShell.Run "Net Start Spooler", 0, True
      MsgBox "The Print Spooler service was restarted."
      
      Optionally, the "Service Name" could be substituted with the "Display Name":
      objShell.Run "Net Stop "