"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.