MSkenner
asked on
W2008 - schtasks: Access Denied
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\shutd own /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
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\shutd
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
ASKER
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
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
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~
Make sure you take at least 2 -3 errors for Access is Denied.
Thanks and Good Luck..!!
~SG~
ASKER
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
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
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~
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~
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
changed parameters after searching internet
http://social.technet.microsoft.com/Forums/en/winservermanager/thread/d47d116e-10b9-44f0-9a30-7406c86c2fbe
http://support.microsoft.com/kb/951246
Good Luck..!!
~SG~