GPO Schedule Task doesn't work

Posted on 2013-11-12
Last Modified: 2015-04-02
Hi Experts,

I created a GPO to create a schedule task to restart IIS service everyday at 2:00am.

The schedule is set to run a script located at \\DOMAIN\NETLOGON and the script works fine if I run it manually, but the gpo simple doesn't create de task.

I tried with no "run as" option and with "nt authority\system", both with no luck.

Any ideas?

Question by:DELAGIO
  • 2
LVL 35

Expert Comment

ID: 39642491
Why you required GPO to create Schedule task ?
How many servers you want to restart IIS servcie ?
You can create schedule task per server basis and I think this is one time task

Author Comment

ID: 39642501
Why you required GPO to create Schedule task ? --> I want to
How many servers you want to restart IIS servcie ? --> Several

You can create schedule task per server basis and I think this is one time task --> This is not my question, thank you. None of your comments helped me somehow.
LVL 77

Accepted Solution

Rob Williams earned 500 total points
ID: 39642538
A fellow on Experts Exchange recently had a similar issue, though not using a GPO,  with a net stop batch file task.  The solution was to run as a system, not an admin.  To do so they used psexec (From Microsoft/Sysinternals):

psexec -s -i net stop <service>


The discussion is located:

Author Comment

ID: 39642557
Thanks Rob, I will take a look at your solution.

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We recently endured a series of broadcast storms that caused our ISP to shut us down for brief periods of time. After going through a multitude of tests, we determined that the issue was related to Intel NIC drivers on some new HP desktop computers …
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
In this Micro Tutorial viewers will learn how to restore single file or folder from Bare Metal backup image of their system. Tutorial shows how to restore files and folders from system backup. Often it is not needed to restore entire system when onl…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now