Skip to content

Instantly share code, notes, and snippets.

@mubix
Last active July 18, 2019 13:29
Show Gist options
  • Save mubix/87d2d372a866fa3969cd9b6428cffef8 to your computer and use it in GitHub Desktop.
Save mubix/87d2d372a866fa3969cd9b6428cffef8 to your computer and use it in GitHub Desktop.
Modify Scheduled Task
Get-ScheduledTask -TaskName 'XblGameSaveTaskLogon' | % { $_.Actions += New-ScheduledTaskAction -Execute 'calc.exe'; Set-ScheduledTask -TaskPath $_.TaskPath -TaskName $_.TaskName -Action $_.Actions }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment