Solved

W2008 - schtasks: Access Denied

Posted on 2011-09-28
7
1,310 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

Are end users causing IT problems again?

You’ve taken the time to design and update all your end user’s email signatures, only to find out they’re messing up the HTML, changing the font and ruining the imagery. What can you do to prevent this? Find out how you can save your signatures from end users today.

Question has a verified solution.

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

Remote Apps is a feature in server 2008 which allows users to run applications off Remote Desktop Servers without having to log into them to run the applications.  The user can either have a desktop shortcut installed or go through the web portal to…
Know what services you can and cannot, should and should not combine on your server.
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
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…

911 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

19 Experts available now in Live!

Get 1:1 Help Now