How can I stop a service...

  • Thread starter Thread starter Sr. Bocadillo
  • Start date Start date
S

Sr. Bocadillo

How can I stop a service from running, automatically 30 seconds after bootup?

this service is required at start-up but then not needed, so I'd like to stop
it

Sr. Bocadillo
--
 
The answer to your question is beyond the "Basics" of this newsgroup

To have a service stopped that's not needed after 30 seconds after startup requires programing code or the very least a very complicated executable script

If you want to manually stop a service, either at startup or currently running, then with Administrator privliedges

Start > Control Panel > Performance and Maintenance > Administrative Tools > Service

Click on each each to get a desciption of it

NOTE: Changing the behavior of the services if you don't know what your doing can cause your system to become unstable !!

Reference

"To start, stop, pause, resume, or restart a service
http://www.microsoft.com/resources/...all/proddocs/en-us/sys_srv_start_service.mspx
 
"Sr. Bocadillo" said in news:[email protected]:
How can I stop a service from running, automatically 30 seconds after
bootup?

this service is required at start-up but then not needed, so I'd like
to stop it

Sr. Bocadillo

Write a batch file to run a command to delay for 30 seconds (do a Google
for a freebie waitfor, wait4, waituntil, or other delay tool). I think
under Windows 9x/ME there was the 'choice' DOS command but it's been too
long since I've used those toy versions. In Windows XP (and maybe in
Windows 2000), there is the 'set' command but unfortunately it doesn't
provide a timeout to select a default.

Follow the delay command with a 'pskill' command (available from
SysInternals). pskill lets you specify the [partial] filename of the
process so you kill it by name (in addition to killing it by process
ID).

Then add this .bat file as a scheduled event in Task Scheduler
configured to run at system startup. Be sure to specify an account to
run this event (RunAs) that has administrator privileges. Note that
there is a big difference in running at system startup as opposed to
running after login.

Since you chose to hide from us what NT service you are trying to kill,
either you are embarassed about what this service performs, it is unique
to your software and feel no one else would understand it, or you really
don't know what the hell the NT service does and so you also don't know
the ramifications will be of killing this NT service. Don't blame me if
you screw over your system that you make it impossible for it to come up
or for you to recover your OS other than having to reformat the disk and
reinstall anew.
 
I find myself a little confused as to why you would want or need to do this. Once a service has been used for boot purposes and then no longer is being used it merely sits there not using any CPU resources what so ever until called upon or once again needed. Unless the service is actually active it in no way slows your system down or causes any conflicts. I can see the problem if it's something like the Indexing service which activates on the rare occassion and can cause interuption of file down loads or other processes. Then yes set the service to manual or as in my case disabled. I am strictly a stand alone home unit who does no server related work so indexing is quite a waste of my time and causes me slow downs. www.blkviper.com has an excellent list of services and what they do and configuration for three types of use. I rather doubt the need to disable a service not doing anything until called upon by you to do so. Good luck.
 
Man are you ever WRONG. Rightclick the Taskbar and TaskManager the
the Processes tab and see all the programs that are running and consumin
valuable system/memory resources. Disabling ones in at startup is th
best way to run a leaner and smoother syste
Start/Run/type MSCONFIG and click O
Click the startup tab and disable programs you do not want to star
it does not delete anything only stops them from loading and usin
valuable system resources and slowing it down

System Technician
 
You're nuts!
*Vanguard* said:
"Sr. Bocadillo" said in news:[email protected]:
How can I stop a service from running, automatically 30 seconds after
bootup?

this service is required at start-up but then not needed, so I'd like
to stop it

Sr. Bocadillo

Write a batch file to run a command to delay for 30 seconds (do a Google
for a freebie waitfor, wait4, waituntil, or other delay tool). I think
under Windows 9x/ME there was the 'choice' DOS command but it's been too
long since I've used those toy versions. In Windows XP (and maybe in
Windows 2000), there is the 'set' command but unfortunately it doesn't
provide a timeout to select a default.

Follow the delay command with a 'pskill' command (available from
SysInternals). pskill lets you specify the [partial] filename of the
process so you kill it by name (in addition to killing it by process
ID).

Then add this .bat file as a scheduled event in Task Scheduler
configured to run at system startup. Be sure to specify an account to
run this event (RunAs) that has administrator privileges. Note that
there is a big difference in running at system startup as opposed to
running after login.

Since you chose to hide from us what NT service you are trying to kill,
either you are embarassed about what this service performs, it is unique
to your software and feel no one else would understand it, or you really
don't know what the hell the NT service does and so you also don't know
the ramifications will be of killing this NT service. Don't blame me if
you screw over your system that you make it impossible for it to come up
or for you to recover your OS other than having to reformat the disk and
reinstall anew.
 
Go to: Start ==> Run and write shutdown /a

after this you have to check settings of RPC procedure.

Wacek
 
"Unknown" said in news:[email protected]:
You're nuts!

Why? Because I realize the Task Scheduler has an option to run an event
at system startup? That the program specified can be a batch file?
That pskill.exe will kill off a process and which I've used sucessfully
many times, especially for Norton products, most of which like to
install NT services? Just because you couldn't figure out a solution
doesn't mean there isn't one.
 
How can I stop a service from running, automatically 30 seconds after
bootup?
this service is required at start-up but then not needed, so I'd like to
stop it<


Left-click on *START* -> Left-click *RUN* -> In the *RUN*-box window type:
*msconfig* (without the asterisks*) then left-click [O.K.]....IIRC, when the
next window opens left-click on the (start-up) last tab on the right. This
will/should show you all programmes which are trying to compete with the
basic start-up......remove the *ticks* from the boxes (on the left) of the
programmes which you don't want to start-up at the same time. I was
always advised to only *tick* the boxe(s) of the anti-virus programme
installed.

Colin.
 
OK, thank you all for your replies...

I'll have to find out how to write a batch file, I guess.

For the curious the service I wish to stop is a program (which runs as a
service) called StyleXP from http://www.tgtsoft.com/ for some reason XP
themes cannot 'remember' all the settings that this little program generates,
even when saved as a theme. So if I disable it I don't get the correct
settings for the theme I select. Anyway I like what it does, so want to keep
it (desktop looks neat) but don't like anything running or active that's not
absolutely necessary. Some programs are too self important! keep it simple,
less to go wrong, don't you know.

Thanks again
Sr. Bocadillo
 
Sr. Bocadillo said:
OK, thank you all for your replies...



You could try contacting the company concerned.....they should have
*Programme Support*. To remove it from *Start-Up* then use
*msconfig*...it's easy and simple if you follow the instructions I gave in a
previous reply.....good luck.

Colin.
 
Let me state again

I want to stop a service from running AFTER startup, automatically if
possible. I want it to run at startup!!!! but THEN I want to stop it
running.

I DO NOT want to remove it!!!!

Sr. Bocadillo
 
Back
Top