I had just picked up Delphi and being the nerd I was, I wanted to make use of it anywhere I could. At the time, the Windows API was essentially completely open to mess with, and I had discovered a bunch of weird things, like the fact that setting (!) the mouse cursor position was even possible, and I knew the CD ROM drive could be opened with code as well.
I packed those things into a quick Delphi program, removed its main window (so like a daemon essentially) and then deployed it on our school computers (everything was open, I just put it into the Startup folder if I remember correctly).
Well, I had the daemon deployed on most computers eventually and it had a timer that looked up a file on the shared network drive, and depending on what was in that file, it would do something, or stay quiet in the background.
Since our IT classes were mostly just "doing stuff in Microsoft Word" (good old times), I couldn't hold off for too long and just added the magical "shakymouse" to the text file, a minute or two later, you would see everyone's mouse cursor start to wobble. It became next to impossible to hit a button or anything really, and I just had the time of my life as the teacher scrambled around to figure out what in the hell was going on.
I then changed the text file to "cd" and everyone's CD drive opened (one after the other as they all slowly picked up the command). It was SO AMAZING (just the choreography of it all), I literally almost shit my pants out of excitement.
Problem was, there was only one person in the entire school they felt was capable of such nonsense, so they had me at the principal's office an hour later. They made a big show out of it, and told me to go home as they'll come up with a punishment and they'll also need to talk to my parents.
I thought I was in massive trouble, didn't sleep at all that night. Next morning, I'm back at school, principal wants to see me, tells me I am free from having to attend the IT classes, as I clearly don't need them, and this reduces the chance of me getting bored. So it worked out quite nicely after all. Lesson learned... CRIME PAYS!!!