You can put an enrolment key on a course, so that students are require to enter the key first in order to start taking the course. It is a one-shot password, basically.
Thanks Sean... I'm too impatient to get going with this I should really read the fine manual.