Running a .cmd file at startup using Task Scheduler on Windows 2012 R2 server


hello,

i've tried simple .cmd file running @ server startup on windows 2012 r2 server.
.cmd (test.cmd) file contains following:

c:
cd c:\somefolder\
call some.exe file "argument1" "argument2"

i've ensured local administrator user [someuser01] has full control of c:\somefolder
i've ensured someuser01 is part of log on batch job in local security policy

to try running startup, tried using task scheduler.
general tab: set user (local administrator account [someuser01] ) , ticked options run whether logged on or not, not store password, run highest privileges
triggers: @ system startup, ticked enabled
actions: start program. program/script: test.cmd, add arguments: [blank], start in: c:\somefolder
conditions: unticked conditions
settings: ticked following --> allow task run on demand, if running task not end...force stop
then clicked ok and prompted someuser01's credentials.

restarted server.
upon logging in administrator, checked task scheduler, , found task did not run (last run time: never)
i've been able run manually (click run on task in task scheduler) without problems.
cannot run @ startup i've instructed task scheduler do.

any ideas on might causing problem?

thanks.


run system account (nt authority)

 

 

 


regards, dave patrick ....
microsoft certified professional
microsoft mvp [windows]

disclaimer: posting provided "as is" no warranties or guarantees , , confers no rights.



Windows Server  >  Windows Server General Forum



Comments

Popular posts from this blog

Edit Group Policy

Hyper-V VM not reaching OS 'Logon' screen

DNS question...