Solved

WIndows Task Scheduler Permissions

Posted on 2016-09-20
6
65 Views
Last Modified: 2016-09-20
I have a WinForms executable I am trying to run in a task scheduler on our server that I remote to
I have full Administrative Permissions
The form is designed to open... run a sub... and close
If I direct click on the exe it runs perfectly
But not in the scheduler
The executable runs... and stays open in the Task Manager... then closes after the "Stop after..." period.
Without performing the task it is designed to run

So... any ideas?
0
Comment
Question by:lrbrister
  • 3
  • 3
6 Comments
 
LVL 29

Expert Comment

by:Gautham Janardhan
ID: 41806466
scheduler item set to run under the same user?
0
 

Author Comment

by:lrbrister
ID: 41806467
Gautham
Yes.
0
 
LVL 29

Expert Comment

by:Gautham Janardhan
ID: 41806469
did u try adding some logging to the app to see where its getting stuck.. Do you see the form when the scheduler runs?
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 

Author Comment

by:lrbrister
ID: 41806478
No... I never see the form... even when running direct.
Here are screen prints of the Task

sp2sp3sp4sp5sp6SP1.png
0
 
LVL 29

Accepted Solution

by:
Gautham Janardhan earned 500 total points
ID: 41806486
its hidden because "Run only when user is logged in" is unchecked.. to debug try setting that
0
 

Author Closing Comment

by:lrbrister
ID: 41806619
Did the debug... I was referencing a file without the full path
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

730 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