On my development machine, I've tried changing the TaskDefinition to use the SYSTEM user account, which did not save (Windows 8.1 x64).
I switched to changing it during the RegisterTaskDefinition but get an Access Denied error. I am an administrator, and have tested it with UAC off, but it still won't take. (The path is fine and works) Here's the code:
I switched to changing it during the RegisterTaskDefinition but get an Access Denied error. I am an administrator, and have tested it with UAC off, but it still won't take. (The path is fine and works) Here's the code:
_TaskService.RootFolder.RegisterTaskDefinition(HDC_FOLDER & "\" & ApplicationFolder() & "\" & Schedule.Id.ToString(), Schedule.TaskDefinition, TaskCreation.CreateOrUpdate, "SYSTEM", Nothing, TaskLogonType.ServiceAccount)