ITask and System Account
Posted on 2004-10-13
Supposedly with the SetAccountInformation in the ITask class if you pass "" for the account name and NULL for the password it sets the task to run as the SYSTEM account. They say that no other way will work. This doesn't work though and the task cannot run. I have tried a number of other ways, but nothing works. Any ideas of how to make this work?
I know that using the schtasks program you can set it to SYSTEM and it does work, but I am looking for a way without using them, and directly from code.