Make program run as normal user in windows but not killable by the user

  admin, nsis, python, registry, windows

I am writing a program that collects logs from each logged in user. I made the application as a user level application initially. Then, I found out that the user can kill the process from task-manager. So, I made the application to be installed as admin and got running as individual user (installed in Program Files). I have added a registry key in

HKLM/Software/Microsoft/Windows/CurrentVersion/Run

This made the application run when any user is logged in. But still the application can be killed from the task-manager even if the user does not have admin privileges. Each user has separate logs data and will be stored in individual User AppData folder. I have but one question, how do I make the application run as an individual user but with admin privileges so that user cannot kill the process from task manager.
I also should write a NSIS script in order to automatically add all the necessary registry keys.
Thanks

Source: Windows Questions

LEAVE A COMMENT