I'm currently writing a small system tray app that needs to shutdown my PC at a certain time. That bit's easy:
Process.Start("shutdown", "-s -t 00")
But how do I do this when my PC is locked? The above doesn't work and I don't want to leave my PC unlocked and unattended.