2217 users online now!    CONTACT US | ADVERTISE | REGISTER       

About this Page -- This is a discussion on Batch file to kill a process on login. within the forum Need Help?. I tried Taskkill, but it simply doesn't work. I have one machine that no matter who logs in, it starts ...

Go Back   VolNation > Off Topic Forums > Need Help?

Reply
 
LinkBack Thread Tools
Old 03-23-2012, 04:23 PM   #1 (permalink)
Repeat Offender
 
superdave1984's Avatar

Join Date: Aug 2007
Location: South Fulton, TN
Posts: 4,361
Likes: 44
Batch file to kill a process on login

I tried Taskkill, but it simply doesn't work. I have one machine that no matter who logs in, it starts a process under a user that is not logged in nor is even listed as a user on the machine. It is a domain user however and has logged into the machine previously. I have deleted the local account on the machine. It's for a program we need, but if the process is already running, we get an error when the user tries to run the program. You can kill it in task manager, but that's just annoying to have to do every time. I tried taskkill with the /f and /t parameters,

@ echo off
taskkill /f /t /im program.exe

but it pops up the cmd window and if you have echo off it's just a black screen that stays there forever. If echo off is not included, the command runs indefinitely. And the process never dies.

I've looked in msconfig for it, not there. Looked in all users, start menu programs startup folder, not there. I have removed all registry entries referring to user john123

So, I need a batch file that runs at startup that either kills off user john123 or kills process "program.exe". I can't seem to prevent either one from happening. I can uninstall the program and naturally it doesn't happen, but we use this program all day every day. I am guessing it's somewhere in a login script that our corporate honks put in, but they don't allow me to change those.
We are on a domain if that matters.

If I log in as the user in question, there's no problem at all because it allows the program to run. But we have multiple users that use this machine.

HELP!
__________________
I will not go back.
superdave1984 is offline  
Reply With Quote TOP
Old 03-23-2012, 09:28 PM   #2 (permalink)
Senior Member
 
s1216's Avatar

Join Date: Jan 2009
Posts: 1,188
Likes: 159
Look under services.
s1216 is offline  
VN Likes: 1
Reply With Quote TOP
Old 03-24-2012, 07:23 AM   #3 (permalink)
YKW = Basilio's Bish
 
bamacheats's Avatar

Join Date: Jun 2009
Location: Knoxville
Posts: 8,141
Likes: 1,984
I would hit it with a hammer then fix it by buying a Mac.
bamacheats is online now  
Reply With Quote TOP
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27