General discussion

Locked

Stopping services from a command prompt?

By tjordan4 ·
i was wonder if there is a way to stop and possibly restart a service from the command prompt. i'm have ing a problem on a service where the print spool service is hanging up,and when you go to services to restart it. it appears to stop the service and restart and give me a message the access code is invaild. but when i bring up the task manager the spool service is still running. anyone help?

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by Cactus Pete In reply to Stopping services from a ...

NET STOP "Service Name"
NET START "Service Name"

Use NET /? for other options. [NET STOP /? will give you the syntax for that command, too]

Collapse -

by Cactus Pete In reply to

If that fails, you might also benefit from the reskit's kill.exe. You can use that when other forms of stopping a process fail.

Collapse -

by Lizzy In reply to Stopping services from a ...

In a past tip from TR:

'MANAGE AND DEBUG SERVICES USING SC.EXE
Although the primary focus of Windows XP was to make it easy for home users to use, Microsoft also included some additional features for advanced users and administrators. One of these features is the command line utility, Sc.exe.
This utility allows users to manage and debug services from the command line. You can use it to query the status of a service; to start, pause, and stop the service; to change the configuration of a service; to enumerate service dependencies; to delete the service from the registry; and for many other purposes. To obtain the list of all supported commands, type sc at the command line.
The Sc.exe utility is quite powerful. For example, it will allow you to query services not only by their name but also by their type (driver, service, both), their state, group, and so on. If, for instance, you wanted to query all of the services that are stopped, you would type:

"sc query state= inactive"

Be sure to type the command exactly as shown. There is no space between the state and the equal sign; however, there is a space between the equal sign and "inactive." If the correct syntax is not used, you will receive an error.'

Collapse -

by JediMaster2003 In reply to Stopping services from a ...

See MS KB Article - 132983. There may be an issue with the OS's involved. What OS's are involved? and what is happening during that time?

Collapse -

by Curacao_Dejavu In reply to Stopping services from a ...

Hi,
actually I need to know which os we are talking about.
The other answer is good , there is a utillity in the resource kit.
I have been thinking about this a few days, and usually the problem is a corrupt driver.
Reinstall the driver (with the latest version)and also use the latest service pack for the os.

Also check for virus, a couple of months ago there was a virus that infected the spooler service, I had to clean the virus and reinstall the printer drivers.

Leopold

Back to Windows Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums