Here's an easy way to automatically lock your keyboards and computers at night. Create the batch file listed below and run it from you scheduler when you're ready to close down for the night. This will lock the keyboard and no work will be lost as opposed to a remote shutdown or logoff.