Solved

W2008 - schtasks: Access Denied

Posted on 2011-09-28
7
1,301 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
Comment Utility
0
 

Author Comment

by:MSkenner
Comment Utility
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
Comment Utility
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
Free book by J.Peter Bruzzese, Microsoft MVP

Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

 

Author Comment

by:MSkenner
Comment Utility
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
Comment Utility
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
Comment Utility
Case closed. invalid commandline parameters were the issue
0
 

Author Closing Comment

by:MSkenner
Comment Utility
changed parameters after searching internet
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

My previous article  (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Windows_Server_2008/A_4466-A-beginners-guide-to-installing-SCCM2007-on-Windows-2008-R2-Server.html)detailed one possible method to get SCCM 2007 installed an…
Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
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…
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…

771 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

13 Experts available now in Live!

Get 1:1 Help Now