I haven't tried your specific scenario, but the Scheduled Tasks applet uses the same base COM library as this library. I would expect that you will need to specify the username and logontype of S4U or InteractiveToken in the RegisterTaskDefinition method and ensure that your settings in code match the settings of those tasks created using the applet.
↧