This thread would imho better run in some 'admin' section than in 'mac programming', so maybe a moderator keeps an eye on that.
As far as i understand the op, there could be some security issue within the system settings of the pupil's macs: If they're allowed to change the system settings of the single units, here the 'sharing' settings (which contain the options to remote ssh logins), they seem to use some kind of admin account.
(Regular users under OS X aren't supposed to change these settings and therefore have not the rights to do that.)
In this scenario, you probably will run into some 'Admin-vs-Admin' war, because in the worst case every other admin user will stay able to run some kind of script, which will disable your 'login resetter' automatically.
To me, the better option seems to talk to the IT Department and ask them to change the pupil's accounts to regular user accounts ('Standard' account), which aren't allowed to change (locked) major settings without the admin password (to which they usually shouldn't have access to).
So they wouldn't be able to activate remote login daily, too.
Also see
Mac Help on this modus operandi.
AFAIK the activation of additional (regular) user accounts doesn't impact neither on the established security settings of the internal network nor the settings of the mac units, so that wouldn't harm.