This project has moved and is read-only. For the latest updates, please go here.

Access Denied while setting user to SYSTEM

Topics: Errors
Feb 23, 2015 at 6:13 AM
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:
_TaskService.RootFolder.RegisterTaskDefinition(HDC_FOLDER & "\" & ApplicationFolder() & "\" & Schedule.Id.ToString(), Schedule.TaskDefinition, TaskCreation.CreateOrUpdate, "SYSTEM", Nothing, TaskLogonType.ServiceAccount)
Feb 24, 2015 at 3:26 AM
Update ...

While my dev machine breaks while setting the user to System, a production machine does not. Oddest stuff. Anybody with any ideas?