0

我尝试使用 powershell 在 windows server 2012 上注册一个新的 ClusteredScheduledTask。但该任务无法正确设置 RepetitionInterval 和 RepetitionDuration。

$T = New-ScheduledTaskTrigger -Once -At 08:10AM -RepetitionInterval (New-TimeSpan -Hours 1) -RepetitionDuration (New-TimeSpan -Hours 12)

任务计划程序 ui 可以看到触发器仅在 08:10 执行一次,但没有 RepetitionInterval 和 RepetitionDuration。

你能告诉我出了什么问题吗?谢谢。乔

4

0 回答 0