Start and Stop the Print Spooler Service

Stops and then restarts the Print Spooler service.

2 Star
Add to favorites
E-mail Twitter 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 "