![]() w-ScheduledTask -Action $A -Principal $P -Trigger $newTrigger -Settin. New-ScheduledTask : Cannot bind argument to parameter 'Trigger', because PSTypeNames of the argument do not match the PSTypeName required by the parameter: #MSFT_TaskTrigger. $D = New-ScheduledTask -Action $A -Principal $P -Trigger $newTrigger -Settings (New-ScheduledTaskSettingsSet) $P = New-ScheduledTaskPrincipal "msft\bill" $A = New-ScheduledTaskAction -Execute "taskmgr" $newTrigger = New-CimInstance -ClassName MSFT_TaskEventTrigger -Namespace Root/Microsoft/Windows/TaskScheduler -ClientOnly -Property = $True Each DAG may or may not have a schedule, which informs how DAG Runs are. ![]() $repPattern = New-CimInstance -ClassName MSFT_TaskRepetitionPattern -Namespace Root/Microsoft/Windows/TaskScheduler -ClientOnly -Property = $false} The Airflow scheduler monitors all tasks and all DAGs, and triggers the task. This is as far as I got, but I have to GBTW. There's got to be a way to reconstruct the CIM instance for the trigger.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |