WANT TO PREVENT EXITING WINDOWS BY OTHERS WHEN YOU SCHEDULE A TASK NOT TO BE TERMINATED ??? FOLLOW THE STEPS:—
Note: This process uses Local Group Policy Editor which is not available in Starter or Home versions of Windows 7.
Disable Shutdown, Restart, Sleep, and Hibernate Buttons
To open Local Group Policy Editor, click on Start and type in gpedit.msc and hit Enter.
In Local Group Policy Editor navigate to User Configuration Administrative Templates Start Menu and Taskbar and double click on Remove and prevent access to the Shut Down, Restart, Sleep, and Hibernate commands.
Now you want to enable this setting and click Apply and Ok. You can leave a note to yourself in the comment box, which I find comes in handy when changing a lot of settings in Group Policy.
Now when you look at the Power options in the Start Menu, the only options available are Log off, Switch user, and Lock.
The setting goes into effect right away for all users of the machine. The button to turn off the computer if the user hits Ctrl+Alt+Del will be gone as well.