public static void RemoveStartupTask()
// Register task ts.RootFolder.RegisterTaskDefinition(TaskName, td); Console.WriteLine($"Startup task 'TaskName' created successfully."); intel graphics command center startup task
// Find Intel Graphics Command Center executable string exePath = FindIntelGraphicsExe(); if (string.IsNullOrEmpty(exePath)) Console.WriteLine("Intel Graphics Command Center not found."); return; public static void RemoveStartupTask() // Register task ts
if (-not (Test-Path $exePath)) Write-Error "Executable not found at $exePath" exit 1 $action = New-ScheduledTaskAction -Execute $exePath $trigger = New-ScheduledTaskTrigger -AtLogOn -User $env:USERNAME $principal = New-ScheduledTaskPrincipal -UserId $env:USERNAME -LogonType Interactive $settings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries td.Settings.StopIfGoingOnBatteries = false
// Optional: run hidden td.Settings.DisallowStartIfOnBatteries = false; td.Settings.StopIfGoingOnBatteries = false;
private static string FindIntelGraphicsExe()
$taskName = "Intel Graphics Command Center Startup" $appxPackage = Get-AppxPackage -Name " IntelGraphicsExperience " if (-not $appxPackage) Write-Error "Intel Graphics Command Center not installed" exit 1
© 2022 POKOXEMO - ⭐Muchas Gracias por tu Visita⭐