What's the best way to shutdown a service?

By network5831 ·
I've installed a backup drive (usb) from seagate. The backup program works fine, but when the computer shutsdown, the associtated service fails to stop and errors out. I interested to know if there is a way to force this service to shutdown first prior to windows shutting down. (I'm thinking a script but not sure) Thanks in advance.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

I don't know about scripts.

by Ron K. In reply to What's the best way to sh ...

I'd go to Start\Run type in 'services.msc' and choose the service from the list. You can easily stop the service. By right-clicking and choosing Properties you can change the start-up type to manual or disable it if you want to.

Collapse -

Command is usually like

by seanferd In reply to I don't know about script ...

net stop service-name.

But I would try to find out why the problem happens, or if Seagate has an update to fix it or a workaround in their support area.

If it is because a user profile isn't unloading properly, UPHClean from MS might help.

Collapse -


by oldbaritone In reply to What's the best way to sh ...

Try stopping the service after the backup, while the USB drive is still plugged in. After the service is stopped, then "safely remove" the USB drive.


This can be accomplished using the
net stop (service name)
net start (service name)
A full list of the exact services is found in the registry (run regedit.exe) under the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services key.

Alternatively, you can perform the stop and start using the name that is showed in the Services Control Panel applet by putting the name in quotes, i.e.
net stop "(service)"
net start "(service)"

Collapse -

SC/Net use in scripts

by tom.tregilgas In reply to What's the best way to sh ...

you can script this as well...see


for a good explaination of how to do so.

Net usage is also scriptable, see here


Collapse -

System Expkorer

by Kenogami In reply to What's the best way to sh ...

I use a program called System Explorer and it works great. You can find it at Mistergroup.org. It's a free program and has alot of usefullfunctions.
I hope this will help you.

Related Discussions

Related Forums