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 ...
28th February 2013, 04:35 PM #1
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..
(Stop Papercut, stop Spooler, delete all files from \\...\System32\spool\PRINTERS on the server to clear the queues, start Spooler, start Papercut)
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
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 04:36 PM.
IDG Tech News
28th February 2013, 05:10 PM #2
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.
4th March 2013, 02:31 PM #3
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
5th March 2013, 02:10 PM #4
Hi It might also be worth having a look at psexec.
5th March 2013, 02:21 PM #5
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.
By googlemad in forum Windows 7
Last Post: 28th January 2013, 01:14 PM
By localzuk in forum Windows Server 2000/2003
Last Post: 27th April 2011, 02:34 PM
By Allieso in forum Windows 7
Last Post: 24th March 2011, 11:18 AM
By drewinc in forum Windows
Last Post: 22nd May 2007, 10:02 AM
By Nij.UK in forum Windows
Last Post: 16th May 2006, 11:13 AM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)