Solved

Controlling what User ID a Windows Scheduled Task runs under

Posted on 2014-09-30
5
226 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

A new era in Cloud training has arrived.

A day that will go down in Cloud history.. But are you ready for it? Will you accept this Cloud challenge?

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.
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
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…
Suggested Courses

623 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