trzczy
trzczy

Reputation: 1491

Schedule tasks in pure cmd in windows 8

How to schedule tasks in pure cmd without any additional programs. I mean windows cmd or windows batch. For example one wants to shut down his windows on May 31 '17 at 10:24.

Upvotes: 0

Views: 103

Answers (1)

Avenger
Avenger

Reputation: 365

Assuming "pure cmd" and "without any additional programs" means no 3rd party program installation, and that any program bundled with any windows installation is still a "pure cmd" approach, what you need would be an administrator cmd shell (batch running as administrator) and the schtasks.exe (shipped with windows).

Scrhtasts.exe (Windows) from MSDN

To shutdown the system at that date, for example, this should do:

schtasks /create /SC ONCE /ST 10:24 /SD 31/05/2017 /TN ShutdownSystem /TR "'c:\windows\system32\shutdown.exe' /s"

P.s.: this may work if you are not the 'administrator' account but your account has administrator privileges, but may be delayed by the windows' UAC dialog to allow to do changes.

Upvotes: 1

Related Questions