Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remotely stopping printer spooler

Status
Not open for further replies.

joeffm

IS-IT--Management
Sep 22, 2006
6
US
Is it possible to remotely stop/start the print spooler through the command line? I know you can do this locally user NET START SPOOLER/NET STOP SPOOLER. I was just wondering if you can do this to an offsite server through a local command line.
 
not sure about command line but you can right click my computer and select manage, then from the Action drop down menu select Connect to another computer, authenticate if necesary. from here you can get into the remote computers services and restart it.

Hope this helps,

RoadKi11
 
The SC (service control) command can do this. In a command prompt type SC with no arguments to get a help screen. The basic command would be:
Code:
sc \\server stop spooler
 
I use psservice.

Available free:

Usage

Code:
The default behavior of PsService is to display the configured services (both running and stopped) on the local system. Entering a command on the command-line invokes a particular feature, and some commands accept options. Typing a command followed by "-?" displays information on the syntax for the command.

usage: psservice [\\computer [-u username] [-p password]] <command> <options>

query
    Displays the status of a service
config
    Displays the configuration of a service
setconfig
    Sets the start type (disabled, auto, demand) of a service.
start
    Starts a service
stop
    Stops a service
restart
    Stops and then restarts a service
pause
    Pauses a service
cont
    Resumes a paused service
depend
    Lists the services dependent on the one specified
security
    Dumps the service's security descriptor 
find
    Searches the network for the specified service
\\computer
    Targets the NT/Win2K system specified. Include the -u switch with a username and password to login to the remote system if your security credentials do not permit you to obtain performance counter information from the remote system. If you specify the -u option, but not a password with the -p option, PsService will prompt you to enter the password and will not echo it to the screen.

How it Works

PsService uses the Service Control Manager APIs that are documented in the Platform SDK.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top