Quantcast
Channel: Task Scheduler Managed Wrapper
Viewing all articles
Browse latest Browse all 2206

New Post: Exception when using NETWORK SERVICE on Windows Server 2003

$
0
0
Hi I am having the same issue.
OS = Win8 and Win Server 2008 R2.
I tried below code

td.Principal.GroupId = "NT AUTHORITY\NETWORK SERVICE";
td.Principal.LogonType = TaskLogonType.S4U;

also tried the code above.
But I get access denied error.

How can I create a task which can run as "NETWORK SERVICE" and "user logged in or not"

thanks

Viewing all articles
Browse latest Browse all 2206

Trending Articles