Batch files to end unwanted processes
I am using a sever with 2008 r2 installed on it, and I am having some problems with an unwanted process which keeps appearing and annoying other applications.
However, I cannot find a function which will allow me to kill the process for all the users on the server, as I cant change the user privileges to admin, as its not on remote machine (i tried this using taskkill).
Hopefully I have managed to explain this coherently, and that someone knows a way to help me.
Thanks in advance.
April 25th, 2012 11:10am
Joenix, is this question related to Microsoft Projects?
Thanks, Kashif
Free Windows Admin Tool Kit Click here and download it now
April 25th, 2012 5:46pm
I think I may have dropped it in the wrong forum section, thanks for noticing.....
April 26th, 2012 5:35am
Hello,
What is this process?
If it is related to an application then uninstall the application or contact its developer Technical Support for assistance.
If you suspect that it belongs to a malware program / virus then perform a full scan on your server and check the output.
This
posting is provided "AS IS" with no warranties or guarantees , and confers no rights.
Microsoft
Student Partner 2010 / 2011
Microsoft
Certified Professional
Microsoft
Certified Systems Administrator: Security
Microsoft
Certified Systems Engineer: Security
Microsoft
Certified Technology Specialist: Windows Server 2008 Active Directory, Configuration
Microsoft
Certified Technology Specialist: Windows Server 2008 Network Infrastructure, Configuration
Microsoft
Certified Technology Specialist: Windows Server 2008 Applications Infrastructure, Configuration
Microsoft
Certified Technology Specialist: Windows 7, Configuring
Microsoft
Certified Technology Specialist: Designing and Providing Volume Licensing Solutions to Large Organizations
Microsoft
Certified IT Professional: Enterprise Administrator
Microsoft Certified IT Professional: Server Administrator
Microsoft Certified Trainer
Free Windows Admin Tool Kit Click here and download it now
April 26th, 2012 7:11am
what are the unnecessary processes.if it is a known virus you can block them using a av.anyway u can use simple powershell script for stop the process/es.Darshana Jayathilake
April 26th, 2012 12:39pm
The process is a scanner monitor which is activated when one of my users has used the scanner, however when this process is active, it seems that when others try to use the scanner, it causes issues.
I have, however, find it difficult to write a script to end it because it appears under different users, and because they have no admin privileges, they cannot alter each others processes.
Any help would be greatly appreciated.
Free Windows Admin Tool Kit Click here and download it now
April 27th, 2012 3:57am
Hi,
Probably an important question to get clarity on first is this: is this process required in order for the scanner to function?
If it is, then there's really no sound way to automate the process termination.
If it is not required as part of the scanning process at all, then you might get more milage out of preventing it from running at all, rather than taking stabs in the dark with terminating the process.
You can prevent processes from running at all with group policy (local or domain) via Software Restriction Policies (read about them
here), or even through simpler mechanics like uninstalling the software component or possibly even just renaming the relevant executable or library.
Killing the process could be automated through the use of a scheduled task running under the system account, but this comes with the risk that if it's needed, it could cause operational failures if it's killed at an inappropriate time. Hence, it's probably
not a wise option to pursue.
Cheers,
Lain
April 27th, 2012 5:08am
If you are still looking for a way to kill the process you could try something like this:
create a batch file containing this:
runas /user:domain\admin /savecrd "c:\task kill\kill2.bat"
and then the batch file kill2.bat:
taskkill /F /IM "your process"
change domain\admin to a vaild domain admin acount and the path the bach files, also you are going to have to login once on all user acounts that need to run the bach files and provide the admin password, after that it will be stored in the users profile.
Free Windows Admin Tool Kit Click here and download it now
June 5th, 2012 5:58am