Solved

W2008 - schtasks: Access Denied

Posted on 2011-09-28
7
1,326 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
  • 4
  • 3
7 Comments
 
LVL 7

Expert Comment

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

Expert Comment

by:susguperf
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
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 

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 7

Expert Comment

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows Server 2012 Data Center Edition 11 120
Server HP DL380 G7 13 47
Unable to remove HP CP1510 deployed printer 1 57
sccm importing drivers 4 45
Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
Know what services you can and cannot, should and should not combine on your server.
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…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

830 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