We'd like to remind Forumites to please avoid political debate on the Forum... Read More »
We're aware that some users are experiencing technical issues which the team are working to resolve. See the Community Noticeboard for more info. Thank you for your patience.
📨 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?
Options

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
- 350.8K Banking & Borrowing
- 253.1K Reduce Debt & Boost Income
- 453.5K Spending & Discounts
- 243.8K Work, Benefits & Business
- 598.7K Mortgages, Homes & Bills
- 176.8K Life & Family
- 257.1K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.1K Discuss & Feedback
- 37.6K Read-Only Boards