Sometimes you may be required to automatically shut down domain-joined client computers or you may be required to run a script at some specific time. Group policies and task scheduling can help you in such situations.

This tutorial will help you to learn how to schedule a task using group policies in domain controller on Windows Server 2008, Server 2012 R2, and Server 2016.

Step-By-Step instructions to setup a scheduled task

  1. Open the group policy management console.
  2. Right-click your domain and then click "Create a GPO in this domain, and Link it here ..".
  3. Give a name to this newly created GPO and click OK.
  4. Right-click this newly created GPO and then click Edit.
  5. Expand computer or user configuration and then go to the following path:

    Preferences -> Control Panel Settings -> Scheduled Tasks

  6. Right-click on scheduled tasks and then click New -> Scheduled Task.
  7. In the new task properties dialog box, provide the details of this task including action (choose create), run (choose script file), arguments (if any), comments, credentials and check Enabled at the bottom.
  8. Open schedule tab and set the schedule for this task to run.
  9. Click Apply and then click OK.
  10. Execute the gpupdate on the command prompt to apply the changes.
How to Configure a Scheduled Task Item using Group Policy

Karim Buzdar

About the Author: Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. He blogs at LinuxWays.

2 thoughts on “How to Configure a Scheduled Task Item using Group Policy

  • Avatar
    August 18, 2020 at 4:44 pm


    we are getting error while creating the task scheduler policy in 2016 standadr server. MMC got crashed every time . Please help to resolve

  • Avatar
    September 14, 2020 at 5:04 pm


    you might not have the administrative templates properly installed. (you need them to create policies for windows 10 pcs on a server, or office policies on a server with no office installed) .

    search for “group policy administrative templates” only download from the official microsoft websites (it is a template not an executable, but still)


Leave a Reply

Your email address will not be published. Required fields are marked *