Quantcast
Viewing all articles
Browse latest Browse all 2206

New Post: Access Denied while setting user to SYSTEM

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)

Viewing all articles
Browse latest Browse all 2206

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>