We’d like to remind Forumites to please avoid political debate on the Forum.
This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
stop a service prior to shutdown - w2k3?

crankup
Posts: 343 Forumite

in Techie Stuff
I want to automatically stop a service before shutting a machine down.
I can write a very simple batch file to do it:-
"net stop servicename"
Thing is, where do I stick the batch file to ensure it gets executed?
If anyone knows, or knows a decent site that explains in detail, then I would appreciate it! This is using Windows 2003 Server (not XP/98 etc).
Thanks,
Crankup
I can write a very simple batch file to do it:-
"net stop servicename"
Thing is, where do I stick the batch file to ensure it gets executed?
If anyone knows, or knows a decent site that explains in detail, then I would appreciate it! This is using Windows 2003 Server (not XP/98 etc).
Thanks,
Crankup
*************************
* "Take my advice, Dont listen to me." *
*************************
~~ Yes I've tried Google ~~
~~ Yes I've tried ebaY ~~
********************************
* "Take my advice, Dont listen to me." *
*************************
~~ Yes I've tried Google ~~
~~ Yes I've tried ebaY ~~
********************************
0
Comments
-
It's possible to add the shutdown command at the end of the file, then run the batch file to shutdown your pc?0
-
Ok you can use a shutdown script in windows 2003.
OPen up your groupolicy editor START|RUN|gpedit.msc
open computerconfiguration-windows settings-scripts(Startup/shutdown)
Double click the shutdown in the right hand pane and browse to your script
simple
frakDig inside; inside is the fountain of good, and it will forever flow, if you will forever dig.0
This discussion has been closed.
Confirm your email address to Create Threads and Reply

Categories
- All Categories
- 351.7K Banking & Borrowing
- 253.4K Reduce Debt & Boost Income
- 454K Spending & Discounts
- 244.7K Work, Benefits & Business
- 600.1K Mortgages, Homes & Bills
- 177.3K Life & Family
- 258.4K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.2K Discuss & Feedback
- 37.6K Read-Only Boards