Task Scheduler suddenly will not run exe’s in a script
Home › Forums › Server Operating Systems › Windows Server 2012 / 2012 R2 › Task Scheduler suddenly will not run exe’s in a script
This topic contains 3 replies, has 3 voices, and was last updated by CaTBuS 3 years, 7 months ago.
-
AuthorPosts
-
May 11, 2016 at 1:58 pm #166352
I have a script (bat file) that has been running successfully for months until recently. Suddenly, this script works save the part that calls an exe. The bat file will run fine manually but fails at the exe call when run through Task Scheduler. To dumb it down a bit and prove my hypothesis, I wrote the following bat file:
Code:[USER=”68995″]Echo[/USER] OFF
notepad.exe
EXITWhen run manually, it launches notepad and persists until notepad is closed. When I run it via Task Scheduler, it does nothing. It wont even exit its RUNNING state. I’ve tried this in Win7, Win8, and Server 2008 R2 and it runs fine both ways. Its only on my 2012 R2 servers where this is a problem. Something has changed and I can’t figure out what it is.
Any thoughts?
May 12, 2016 at 2:25 am #191220Any recent patches applied?
(that is normally the reason for sudden changes of this sort)If so, try rolling them back one by one
May 15, 2016 at 8:02 am #172715Besides Ossian’s reply – were there any GPO changes? Any new restrictions? Any change in UAC level? What user account are you using to schedule the task?
May 16, 2016 at 9:08 am #309111I can confirm that there have been no patches applied, UAC changes, and no GPO changes. These particular servers are in a managed group and get no updates deployed without being selected by me. Having said that, our InfoSec group is notorious for operating like the KGB and on more than one occasion have been caught “messing around” without submitting proper change requests.
As for user accounts, I’m using a logon-able service account with local admin rights. I’ve also tried using a standard service account with the same local admin access as well as just local system account. No account can even open notepad via task scheduler.
-
AuthorPosts
You must be logged in to reply to this topic.