+ Post New Thread
Results 1 to 5 of 5
Windows Server 2008 R2 Thread, Remotely restart print spooler (+ other services) in Technical; Print Server is nicely set up, I've got a script to add the printers from the print server and remove ...
  1. #1


    Join Date
    Jan 2012
    Posts
    2,568
    Thank Post
    920
    Thanked 342 Times in 263 Posts
    Rep Power
    206

    Remotely restart print spooler (+ other services)

    Print Server is nicely set up, I've got a script to add the printers from the print server and remove all the local printers as they're no longer needed. I've set up Papercut Print Logger and sorted out access rights to shares/etc so that the Assistant Head (who is the most computer literate lady here) and the Head can check the print logs.

    Before I action all of this, I want to give them a way to restart the print spooler should it ever fall over, jobs getting stuck, etc, since I'm not here too often. Apparently, this should work..

    Code:
    	sc \\HWP-PrintServernet stop PCPrintLogger
    	sc \\HWP-PrintServernet stop Spooler
    	del /Q /F \\HWP-PrintServer\Spooler$\*.*
    	sc \\HWP-PrintServer start Spooler
    	sc \\HWP-PrintServer start PCPrintLogger
    (Stop Papercut, stop Spooler, delete all files from \\...\System32\spool\PRINTERS on the server to clear the queues, start Spooler, start Papercut)

    However, each of the sc \\HWP-PrintServer commands returns the following:
    [SC] OpenSCManager FAILED 1722:
    The RPC server is unavailable.


    Google tells me everything from 'It's a virus' to 'Ensure File and Printer sharing is enabled' (it is) and I'm a little stuck as to where I go from here. Anybody encountered this kind of thing before? I know I could allow RDP but I don't think they'll be too confident doing that, so I'd rather just wrap it up in a nice little file they can double-click and be done with, where possible.
    Last edited by Garacesh; 28th February 2013 at 03:36 PM.

  2. #2
    Duke5A's Avatar
    Join Date
    Jul 2010
    Posts
    793
    Thank Post
    80
    Thanked 130 Times in 113 Posts
    Blog Entries
    8
    Rep Power
    31
    You need to enable Remote Administration on the firewall (or just disable the firewall altogether) and add their domain user accounts to the BUILTIN\Administrators group on the print server.

  3. #3


    Join Date
    Jan 2012
    Posts
    2,568
    Thank Post
    920
    Thanked 342 Times in 263 Posts
    Rep Power
    206
    Ah, thank you, I'll give that a bash when I'm back there later this week.
    First time setting up a server - I think I'm doing well at winging it xD

  4. #4
    ricki's Avatar
    Join Date
    Jul 2005
    Location
    uk
    Posts
    1,475
    Thank Post
    20
    Thanked 164 Times in 157 Posts
    Rep Power
    52
    Hi It might also be worth having a look at psexec.

    PsExec

    Richard

  5. #5


    Join Date
    Jan 2012
    Posts
    2,568
    Thank Post
    920
    Thanked 342 Times in 263 Posts
    Rep Power
    206
    Seems no sense putting in third party tools that grant the ability for them to do a tonne of things they'll never want or need to do :P
    All I need is for the asst. head to access print logs (which are in an administrative share she's got access to) and restart the spooler, since I'm only there a day per week.

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 17
    Last Post: 28th January 2013, 12:14 PM
  2. Printer keeps going 'Offline', needs Print Spooler restarting constantly
    By localzuk in forum Windows Server 2000/2003
    Replies: 9
    Last Post: 27th April 2011, 01:34 PM
  3. Win7 print spooler service keeps stopping
    By Allieso in forum Windows 7
    Replies: 5
    Last Post: 24th March 2011, 10:18 AM
  4. Print Spooler on Print Server
    By drewinc in forum Windows
    Replies: 8
    Last Post: 22nd May 2007, 09:02 AM
  5. XP Print Spooler
    By Nij.UK in forum Windows
    Replies: 5
    Last Post: 16th May 2006, 10:13 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •