Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scheduled Task

Status
Not open for further replies.

intel233

MIS
Feb 24, 2007
289
0
0
US
I have a Batch file that I want to have run every 15 minutes. I created a scheduled task for this but it does not run. It says it ran but nothing happened. If I run the bat file manually I have no issues. I know it didn't run because in one of the directories a new file is being created so I can tell by the time stamp nothing happens. Any suggestions?
I am using a Domain Account and the account has full control permissions to the script as well as the directories.
If I select Run only when user is logged on I can see it try to open a cmd prompt so I know its trying to do something. If I select Run whether user is logged on or not then nothing happens.
I also have Run with the highest Privileges.
Its Server 2012 R2
 
When using the Run whether a user is logged on or not, be sure to set the script to run under a resource account that has rights to all the needed folders.

I hope that helps.

Regards,

Mark

No trees were harmed in posting this message, however a significant number of electrons were terribly inconvenienced.

Check out my scripting solutions at
Work SMARTER not HARDER.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top