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

New Post: Is there a way to find the logged in user's "domain\name" when creating a task in code running as SYSTEM?

$
0
0
Thanks I have found the answer in this board!
Just use:
  ts.RootFolder.RegisterTaskDefinition("MyTask", td,
                    TaskCreation.CreateOrUpdate, "SYSTEM", null,
                    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>