Most of these examples are stand-alone code that can be run independently, or pasted into a larger application and modified to the requirements of the application. To add the task, do the following: From the Action. This section contains code examples that illustrate how the Task Scheduler API is used and XML examples that show how tasks are defined in the Task Scheduler schema. From there create a new task where the trigger is a daily time, and action is executing the program. From the Windows Start menu, expand Windows Administrative Tools and select Task Scheduler. Answer: In Windows, you can open the scheduled tasks or task scheduler depending on what OS version you have. Today, I ma going to show you how to use task schedule to schedule auto shutdown or reboot server.ġ.Login to Server and open Server Manager.Ģ.On the Server Manager, Click Tools and select Task Schedule.ģ.On the Task Schedule, Select Task Schedule Library.Ĥ.Right-click Task Schedule Library, select Create Basic Task.ĥ.On the Create Basic Task page, type Auto Shutdown in the Name filed, click Next.Ħ.On the Task Trigger page, select when do you want the Task to start, in my case is One time, click Next.ħ.On the One Time page, select the start date and time, click Next.Ĩ.On the Action page, select Start a program, click Next.ĩ.On the Start a Program page, type C:\Windows\SysWOW64\shutdown in Program/script filed, type -s -t 20 in Add arguments (optional) field, Here -s is for Shutdown, “-t” is for Timing and after that the seconds are given, if you would like to do reboot server not shutdown, you just need to change -s to -r, click Next. We'll use only a small part of its functionality.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |