mirror of
https://github.com/inspec/inspec
synced 2024-12-23 03:23:27 +00:00
668b8d82bf
When using `schtasks` a list is returned if the task has multiple triggers. This merges that list with the last item taking precedence. This is how `Get-ScheduledTask` behaves. Initially, I was going to rewrite this resource to use `Get-ScheduledTask` but the original author purposely did not do this so that PowerShell v3 would be supported. We only support PowerShell v5, but I don't want to break any current users and this change didn't seem to controversial to me. If it gives us trouble, I recommend rewriting it to use `Get-ScheduledTask`. Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
1 line
278 B
Text
1 line
278 B
Text
{"URI":"\\Microsoft\\Windows\\Time Synchronization\\SynchronizeTime","State":"Ready","Logon Mode":"Interactive/Background","Last Result":"1056","Task To Run":"%windir%\\system32\\sc.exe start w32time task_started","Run As User":"LOCAL SERVICE","Scheduled Task State":"Enabled"}
|