This is operating system and not programming language issue.
You should create restricted profiles. And maybe process which starts console with administrative execution right so that it cannot be killed from 'mortal' users. You may want to take a look at autoIt.