A simple program that will, by default, lock Windows in 3 seconds. This time delay can be changed by editing the .config file or by passing in a new value (in milliseconds) as the first argument. The count down can be aborted by pressing space.
By passing in ‘restart’ or ‘shutdown’ as the second argument, we can override the default function.
Microsoft .NET Framework 4 Client Profile