[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 236
  • Last Modified:

Controlling what User ID a Windows Scheduled Task runs under

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
axnst2
Asked:
axnst2
  • 3
  • 2
1 Solution
 
Joshua GrantomSystems AdministratorCommented:
How is the scheduled task triggered? on logon?
0
 
axnst2Author Commented:
No, scheduled to run at a certain time every day
0
 
Joshua GrantomSystems AdministratorCommented:
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
 
axnst2Author Commented:
Thank you!
0
 
Joshua GrantomSystems AdministratorCommented:
you're welcome!
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now