File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
examples/templates/azure-windows Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ $task = @{
64
64
Action = (New- ScheduledTaskAction - Execute 'powershell.exe' - Argument '- sta - ExecutionPolicy Unrestricted - Command " C:\AzureData\CoderAgent.ps1 *>> C:\AzureData\CoderAgent.log" ')
65
65
Trigger = (New- ScheduledTaskTrigger - AtStartup), (New- ScheduledTaskTrigger - Once - At (Get- Date).AddSeconds(15 ))
66
66
Settings = (New- ScheduledTaskSettingsSet - DontStopOnIdleEnd - ExecutionTimeLimit ([TimeSpan]:: FromDays(3650 )) - Compatibility Win8)
67
- Principal = (New- ScheduledTaskPrincipal - UserId 'vm\coder' - RunLevel Highest - LogonType S4U)
4CFF
67
+ Principal = (New- ScheduledTaskPrincipal - UserId " $env:COMPUTERNAME\$env:USERNAME " - RunLevel Highest - LogonType S4U)
68
68
}
69
69
Register- ScheduledTask @task - Force
70
70
You can’t perform that action at this time.
0 commit comments