In the decades I have been working with computers and students, I have found that students are very content following reasonable rules about computing that are well-explained to them. Explaining the potential threats is more effective than punishments.