Solved

Stopping a Process from being Terminated

Posted on 2012-03-12
4
225 Views
Last Modified: 2012-08-13
Heyas,

In Windows 7 if I am running as a standard user. My question si how do I stop certain processes I nominate from being terminated via the task scheduler with out first entering a password. I have heard of ACL for windows but I haven't been able to find any good tutorials on to use it.

Any assistance would be much appreciated.

Thank you.
0
Comment
Question by:Zack
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 11

Expert Comment

by:rowansmith
ID: 37713185
Well, you really can not.  At the end of the day if the user created/owns the process then the user can technically terminate the process.

While it is technically possible to change the DACL preventing the owner from accessing the process, the owner will always be able to change the DACL back to suit them.

I would suggest against this approach and instead run the process as a user whom the logged in user doesn't have credentials for.
0
 

Author Comment

by:Zack
ID: 37713206
Hi Rowansmith,

What you say makes sense, how would then I run a program in startup as a user whom the logged in user doesn't have credentials for.

Thank you.
0
 
LVL 11

Accepted Solution

by:
rowansmith earned 500 total points
ID: 37713217
You can't.  You can not run a program with elevated privileges unless you have the credentials to elevate said program.  More details here.

The only option would be to run your program as a service.  Services are started by the OS when the computer starts.  You can set the credentials for the service so it can run as a non administrator.  If you want any user to be able to interact said program this will be considerably more difficult unless the program has been specifically developed with this in mind.

A possible other option would be to find a service which can be instructed to start a random program for a user when the user logs in.  I suspect this would open a whole stack of security problems however.  I don't know of such a service.
0
 

Author Closing Comment

by:Zack
ID: 37718372
Thanks for the info mate.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

While working, an annoying popup showing below will come and we cannot cancel or close it form the screen. The error message will come again and again.
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question