Solved

Controlling what User ID a Windows Scheduled Task runs under

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

Do email signature updates give you a headache?

Do you feel like you are constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

Join & Write a Comment

If you migrate a Terminal Server licenses server inside the 2008 server family, you can takte advantage of the build-in migration tool. If you like to migrate an older 2003 Server (and the installed client CALs) to a 2008 R2 server for example, you …
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now