Skip to content

Instantly share code, notes, and snippets.

@jmelosegui
Created August 17, 2020 13:12
Show Gist options
  • Save jmelosegui/057e7641e028cebe4e6aeed0110cc3be to your computer and use it in GitHub Desktop.
Save jmelosegui/057e7641e028cebe4e6aeed0110cc3be to your computer and use it in GitHub Desktop.
This command creates a schedule task to run a powershell script on system startup.
schtasks /create /tn "Start Docker Containers" /sc onstart /delay 0000:30 /rl highest /ru system /tr "powershell.exe -file E:\ScheduledTasks\StartDockerContainers.ps1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment