Shawn: If you were a pretty girl, I'd ask you to marry me!...

Thanks for the help! Just tested it, and it works fine, now all I've got left is to try and figure out a way to force a shutdown or logoff without the possibility of the user cancelling it... (But that's another topic)

Thanks again!

_________________________
Regards, Jeroen. There are two ways to write error-free programs. Only the third one works.