using (TaskService ts = new TaskService()) // Delete existing task if present ts.RootFolder.DeleteTask(TaskName, false);
// Action: start the EXE td.Actions.Add(new ExecAction(exePath, "", null));
$installPath = $appxPackage.InstallLocation $exePath = Join-Path $installPath "IntelGraphicsCommandCenter.exe"
$taskName = "Intel Graphics Command Center Startup" $appxPackage = Get-AppxPackage -Name " IntelGraphicsExperience " if (-not $appxPackage) Write-Error "Intel Graphics Command Center not installed" exit 1
// Create a new task TaskDefinition td = ts.NewTask(); td.RegistrationInfo.Description = "Launches Intel Graphics Command Center at user login"; td.Principal.LogonType = TaskLogonType.InteractiveToken;
// Trigger: at user logon td.Triggers.Add(new LogonTrigger());
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\
