View Full Version : Disabling (temporarily) running services
TC
December 22nd 03, 09:48 PM
Is there another way of disabling services running in Task Manager?
I have three programs running, spam filter, firewall and anti-virus
software. Normally, in order to temporarily disable these programs, I would
right-click on the icon and select the appropriate command from the menu.
Using a program called Batchrun, I wanted to produce a batch file which
would disable all three of the programs mentioned above by a single click on
a desktop icon. To test this theory, I selected 'End Process' and entered
the EXE file for the spam filter and it worked perfectly.
However, I am having great difficulty finding out how to disable the
firewall and the anti-virus software. Simply following the same pattern I
used with the spam filter doesn't work.
Msconfig.Exe and Services.Msc do not appear to offer anything other than
permanently disabling software.
Any ideas appreciated.
TC
Mark L. Ferguson
December 22nd 03, 09:49 PM
Open a command prompt (in Pro Edition) and type: 'taskkill /?'
--
Mark L. Ferguson TabletPC MVP
Email address : Subject: "QZ" + anything
All email without "QZ" in the subject line will be automatically deleted.
marfer's notes for XP > http://www.geocities.com/marfer_mvp/xp_notes.htm
..
"TC" > wrote in message
...
> Is there another way of disabling services running in Task Manager?
>
> I have three programs running, spam filter, firewall and anti-virus
> software. Normally, in order to temporarily disable these programs, I would
> right-click on the icon and select the appropriate command from the menu.
>
> Using a program called Batchrun, I wanted to produce a batch file which
> would disable all three of the programs mentioned above by a single click on
> a desktop icon. To test this theory, I selected 'End Process' and entered
> the EXE file for the spam filter and it worked perfectly.
>
> However, I am having great difficulty finding out how to disable the
> firewall and the anti-virus software. Simply following the same pattern I
> used with the spam filter doesn't work.
>
> Msconfig.Exe and Services.Msc do not appear to offer anything other than
> permanently disabling software.
>
> Any ideas appreciated.
>
> TC
>
>
TC
December 24th 03, 02:42 PM
Unfortunately, I'm using XP Home!
"Mark L. Ferguson" > wrote in message
...
> Open a command prompt (in Pro Edition) and type: 'taskkill /?'
>
> --
> Mark L. Ferguson TabletPC MVP
> Email address : Subject: "QZ" + anything
> All email without "QZ" in the subject line will be automatically deleted.
> marfer's notes for XP > http://www.geocities.com/marfer_mvp/xp_notes.htm
> .
>
> "TC" > wrote in message
> ...
> > Is there another way of disabling services running in Task Manager?
> >
> > I have three programs running, spam filter, firewall and anti-virus
> > software. Normally, in order to temporarily disable these programs, I
would
> > right-click on the icon and select the appropriate command from the
menu.
> >
> > Using a program called Batchrun, I wanted to produce a batch file which
> > would disable all three of the programs mentioned above by a single
click on
> > a desktop icon. To test this theory, I selected 'End Process' and
entered
> > the EXE file for the spam filter and it worked perfectly.
> >
> > However, I am having great difficulty finding out how to disable the
> > firewall and the anti-virus software. Simply following the same pattern
I
> > used with the spam filter doesn't work.
> >
> > Msconfig.Exe and Services.Msc do not appear to offer anything other than
> > permanently disabling software.
> >
> > Any ideas appreciated.
> >
> > TC
> >
> >
>
Mark L. Ferguson
December 24th 03, 02:44 PM
The WMI is quite capable of it. I don't use Home a lot, and this might require a
shortcut with a shim to 'runas' the default "Administrator", I haven't really
tried it.
--close_notepad.vbs--
set wmi = GetObject("winmgmts:")
wql = "select * from win32_process where name='notepad.exe'"
set result = wmi.ExecQuery(wql)
for each instance in result
instance.Terminate(0)
next
--end file cut here--
--
Mark L. Ferguson TabletPC MVP
Email address : Subject: "QZ" + anything
All email without "QZ" in the subject line will be automatically deleted.
marfer's notes for XP > http://www.geocities.com/marfer_mvp/xp_notes.htm
..
"TC" > wrote in message
...
> Unfortunately, I'm using XP Home!
>
> "Mark L. Ferguson" > wrote in message
> ...
> > Open a command prompt (in Pro Edition) and type: 'taskkill /?'
> >
> > --
> > Mark L. Ferguson TabletPC MVP
> > Email address : Subject: "QZ" + anything
> > All email without "QZ" in the subject line will be automatically deleted.
> > marfer's notes for XP > http://www.geocities.com/marfer_mvp/xp_notes.htm
> > .
> >
> > "TC" > wrote in message
> > ...
> > > Is there another way of disabling services running in Task Manager?
> > >
> > > I have three programs running, spam filter, firewall and anti-virus
> > > software. Normally, in order to temporarily disable these programs, I
> would
> > > right-click on the icon and select the appropriate command from the
> menu.
> > >
> > > Using a program called Batchrun, I wanted to produce a batch file which
> > > would disable all three of the programs mentioned above by a single
> click on
> > > a desktop icon. To test this theory, I selected 'End Process' and
> entered
> > > the EXE file for the spam filter and it worked perfectly.
> > >
> > > However, I am having great difficulty finding out how to disable the
> > > firewall and the anti-virus software. Simply following the same pattern
> I
> > > used with the spam filter doesn't work.
> > >
> > > Msconfig.Exe and Services.Msc do not appear to offer anything other than
> > > permanently disabling software.
> > >
> > > Any ideas appreciated.
> > >
> > > TC
> > >
> > >
> >
>
>
vBulletin® v3.6.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.