Solved

W2008 - schtasks: Access Denied

Posted on 2011-09-28
7
1,350 Views
Last Modified: 2012-05-12
Hi all.

I created a GPO for our servers in the domain to have them restarted every week.
The GPO calls Startup-script (herstart.cmd) that with the next command in it

SCHTASKS /Create /F /RU SYSTEM /TN Weekly_reboot /ST 01:30:00 /SC Weekly /D MON /SD 09/27/2011 /TR "c:\windows\system32\shutdown /r /f"

It runs fine on any W2K3 server, but does not on W2008 servers.
When i run the command manually, with dom.admin account it returns an "Acccess is Denied" error.
Nothing found in logfiles.

Anyone any idea?
(without starting a discussion about the relevance of a weekly reboot schedule, just stick to the question)

Thanks in advance for all help
0
Comment
Question by:MSkenner
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 8

Expert Comment

by:Sushant Gulati
ID: 36717435
0
 

Author Comment

by:MSkenner
ID: 36813232
Thanks SG

Unfortunately it does not help me, because it describes situations in which it DOES work manually.
My task does start actually but it probably returns an error Access denied (or it least i presume, because does that when i run this command manually)
I don't know for sure because not error is logged.

To be clear: the script i made actually starts only the command to create this task does not (schtasks.........etc) it returns the error.
Even when i run it manually, i get this error

Anyone any furthter suggestions
0
 
LVL 8

Expert Comment

by:Sushant Gulati
ID: 36815786
Start the task and run the Process Monitor tool and collect the Access is Denied errors. Make sure you don't save the logs in the .CSV file. Attach that file with your next comments. I will check on which file the Access is Denied error messages are coming up.

Make sure you take at least 2 -3 errors for Access is Denied.

Thanks and Good Luck..!!
~SG~
0
Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 

Author Comment

by:MSkenner
ID: 36909611
Hi SG

Hope i used the right Process Monitor and collected the info you need.
If not please let me know
Thanks for your help so far

schtasks.logfile.CSV
0
 
LVL 8

Expert Comment

by:Sushant Gulati
ID: 36921100
Says content decoding is failed. Rename the file to .CS_ and asked you not to save the logs in .PML format.

I will see the logs and upload it with the renamed file and collect one more instance of the event in .PML format. The reason I am saying the Excel has the limitation in the spreedsheet in writing/saving the data.

Good Luck..!!
~SG~
0
 

Accepted Solution

by:
MSkenner earned 0 total points
ID: 37029696
Case closed. invalid commandline parameters were the issue
0
 

Author Closing Comment

by:MSkenner
ID: 37055342
changed parameters after searching internet
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

INTRODUCTION The purpose of this document is to demonstrate the Installation and configuration of the Data Protection Manager product. Note that this demonstration was prepared on the basis of Windows OS is 2008 R2 and DPM 2010. DATA PROTECTI…
Issue: One Windows 2008 R2 64bit server on the network unable to connect to a buffalo Device (Linkstation) with firmware version 1.56. There are a total of four servers on the network this being one of them. Troubleshooting Steps: Connect via h…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
Suggested Courses

630 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