If the following code is copied into your command prompt, it will shutdown the computer at 6:30pm
at 18:30 shutdown -sTo confirm task has been added, just type "at" in the command prompt, and you will see the scheduled tasks. If you would like to remove the job type:
at [id] /delete //[id] = replace with the ID number to deleteTo restart windows, just add -r command. A prompt can also be given to give notification of upcoming shutdown by adding -c. The command can also be generated to work on certain days of the week. Ex:
at 18:30 /every:T,Th,F shutdown -s -r -c "Computer is going to restart!"The code above says the computer will restart at 6:30pm every Tuesday through Friday and give the message indicating pc is restarting. Hope this helped! IMPORTANT: If this command is being issued through windows 7, please ensure you run command prompt as Administrator or else you will get "Access Denied".