Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Controlling what User ID a Windows Scheduled Task runs under

Posted on 2014-09-30
5
Medium Priority
?
232 Views
Last Modified: 2014-09-30
Hi Experts,

            I am planning on having a Windows Scheduled Task execute a Console Application.  The application needs to be able to access certain mapped drives that only specific users have Read/Write access to.  How can I make sure that when the Windows Scheduler runs the executable, the executable is run under the correct user credentials?  Or am I going about this all wrong in the first place?

Environment: Server 2008 R2, .NET FW v4.5, C#

Thanks,

Kosher
0
Comment
Question by:axnst2
  • 3
  • 2
5 Comments
 
LVL 16

Expert Comment

by:Joshua Grantom
ID: 40352863
How is the scheduled task triggered? on logon?
0
 

Author Comment

by:axnst2
ID: 40352876
No, scheduled to run at a certain time every day
0
 
LVL 16

Accepted Solution

by:
Joshua Grantom earned 2000 total points
ID: 40352893
ok, under the scheduled task, you should be able to choose run as user and input the credentials of a user that has the permissions you need. I would also check Run whether user is logged in or not, and highest privileges.
0
 

Author Comment

by:axnst2
ID: 40353033
Thank you!
0
 
LVL 16

Expert Comment

by:Joshua Grantom
ID: 40353038
you're welcome!
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

876 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