Schedule shutdown of Windows XP

By xngo on June 23, 2019

Schedule shutdown of Windows XP every day at 8h30 PM.

net start "task scheduler"
at 20:30 /every:M,T,W,Th,F,S,Su cmd /c shutdown -s -f -t 0

http://support.microsoft.com/kb/308569

REM For Win 7
REM Doesn't work: Access denied
REM http://support.microsoft.com/kb/904423
REM http://forums.techguy.org/networking/472904-solved-schtasks-upated-not-working.html
schtasks.exe /Create /RU "NT AUTHORITY\SYSTEM" /SC DAILY /TN "Shutdown daily" /TR "cmd /c shutdown -s -f -t 0" /ST 20:30:00

WinXP command line to shutdown

shutdown /s /t 0

About the author

Xuan Ngo is the founder of OpenWritings.net. He currently lives in Montreal, Canada. He loves to write about programming and open source subjects.