Windows Form start on boot with admin privileges (Windows 10) I have a c# Windows Form program which require administrator privileges. I want it to automatically start when Windows boots (or when user log in). 
I set the admin priviledge using the manifest file and adding in it : 
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />

In order to start the program, I've added to Registry :
RegistryKey Key = 
    Registry.CurrentUser.CreateSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run");
Key.SetValue("My Program", "\"" + Application.ExecutablePath.ToString() + "\"");

This works well, as I can see in the task Manager, it is there with other programs. But when rebooting the device, nothing happens.
As BugFinder suggest, I tried to use the schedule task but it doesn't seems to work either. I cannot understand why this admin right is blocking everything.
Here is the schedule task code
using (TaskService ts = new TaskService())
{
   // Create a new task definition and assign properties
   TaskDefinition td = ts.NewTask();
   td.RegistrationInfo.Description = "Start BeOnePrgram";

   // Create a trigger that will fire after the system boot
   td.Triggers.Add(new LogonTrigger());

   // Create an action that will launch BeOne whenever the trigger fires
   td.Actions.Add(new ExecAction("BeOne", Application.ExecutablePath.ToString(), null));

   // Register the task in the root folder
   ts.RootFolder.RegisterTaskDefinition(@"DarkAutomatorTask", td);