开发者

Run scheduled task with different user that the one that it was created

I need to create a task for task scheduler from c# code using a user and a password for creating it.

Then the program that is scheduled, I want to be runned using a different 开发者_StackOverflow社区account then the user that was used for creating the task.

Is it possible ? If yes, how?


After you create a Scheduled Task in Windows, open the task properties. There should be a Run As textbox on the Task tab, that allows you to type in a different user's name. Then you can create a password.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜