However, a more reliable method is using (if available) or simulating UI automation. Example: Apply a known profile via registry Intel stores some settings in: HKEY_CURRENT_USER\Software\Intel\Graphics\
// Register task ts.RootFolder.RegisterTaskDefinition(TaskName, td); Console.WriteLine($"Startup task 'TaskName' created successfully.");
But writing directly is risky. Instead, launch the app with a specific command line (some versions support --apply-profile "Gaming" – check yours).
// Optional: run hidden td.Settings.DisallowStartIfOnBatteries = false; td.Settings.StopIfGoingOnBatteries = false;
private static string FindIntelGraphicsExe()