Solved

W2008 - schtasks: Access Denied

Posted on 2011-09-28
7
1,336 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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Suggested Solutions

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
Know what services you can and cannot, should and should not combine on your server.
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…
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…

739 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