Solved

GPO Schedule Task doesn't work

Posted on 2013-11-12
6
115 Views
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?

Thx!
0
Comment
Question by:DELAGIO
  • 2
6 Comments
 
LVL 35

Expert Comment

by:Mahesh
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
0
 

Author Comment

by:DELAGIO
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.
0
 
LVL 77

Accepted Solution

by:
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>

Download:  http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx

The discussion is located:
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Q_28284801.html
0
 

Author Comment

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

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

760 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

21 Experts available now in Live!

Get 1:1 Help Now