Hi,
I'm currently scheduling tasks using SYSTEM account:
Is it possible to call RegisterTaskDefinition with the current service's user and password?
Thank you, Valentina
I'm currently scheduling tasks using SYSTEM account:
folder.RegisterTaskDefinition(task.name, td, TaskCreation.CreateOrUpdate,
"SYSTEM", null, TaskLogonType.ServiceAccount);
Scheduling is done from a Windows Service, that is configured by default with SYSTEM account. Since windows service's user credentials can be modified, I would like to schedule tasks using the user who is currently running the service, instead of always using SYSTEM.Is it possible to call RegisterTaskDefinition with the current service's user and password?
Thank you, Valentina