Solved

Controlling what User ID a Windows Scheduled Task runs under

Posted on 2014-09-30
5
220 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 500 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Redirected folders in a windows domain can be quite useful for a number of reasons, one of them being that with redirected application data, you can give users more seamless experience when logging into different workstations.  For example, if a use…
I was supporting a handful of Windows 2008 (non-R2) 2 node clusters with shared quorum disks. Some had SQL 2008 installed and some were just a vendor application that we supported. For the purposes of this article it doesn’t really matter which so w…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

831 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