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 36

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

The reason that corporations and businesses use Windows servers is because it supports custom modifications to adapt to the business and what it needs. Most individual users won’t need such powerful options. Here I’ll explain how you can enable Wind…
You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.
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…

821 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