Examples Example 1: Register a scheduled task that uses default task settings PS C:\>$Sta = New-ScheduledTaskAction -Execute 'Cmd' You can use the scheduled task settings to register a new scheduled task or update an existing task registration.
Use this cmdlet to configure options to manage the behavior of the task upon completion, to manage the behavior of the task if a problem occurs, or to manage the behavior of the task if an instance of the task is already running. The New-ScheduledTaskSettingsSet cmdlet creates an object that contains scheduled task settings.Įach scheduled task has one set of task settings.
In this article Syntax New-Scheduled Task Settings Set Creates a new scheduled task settings object.