Posted By: sbc | Apr 6th, 2006 @ 7:46 AM
page 1 of 1
Comments: 1 | Views: 6532
sbc
sbc
GW R/Me
The console application is written in C# and queries the database sending emails to various people depending on certain circumstances (document has expired or is to be reviewed soon).

I want to run it as a scheduled account, but it uses a trusted connection (so uses my credentials, which has access to the database). However, as passwords change every few months it would mean editing the task when I change my password.

How can I set a scheduled task to use the ASP.NET account instead? The server is Windows 2000 Advanced.
Maurits
Maurits
AKA Matthew van Eerde
Scheduled Tasks have a "Run as" box where you can enter the username you want them to run as.  Then you will need to enter the password (and confirm it.)

Any time you modify the command that is to be run, it will ask you for the password.

You could run it as the ASP.NET account (which would require setting the password to something that you know), or you could create a dedicated account just for that task (or for a certain set of tasks.)
page 1 of 1
Comments: 1 | Views: 6532