set a timer to turn off computer code example Example: how to turn off pc at specific time shutdown -s -t <TimeInSeconds>