开发者

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

开发者 https://www.devze.com 2023-04-12 01:08 出处:网络
I need to create a task for task scheduler from c# code using a user and a password for creating it.

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

精彩评论

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

关注公众号