Skip to content

ScheduledTask: IdleWaitTimeout returned from Get-TargetResource always null #186

@djwork

Description

@djwork

Background: Working on a fork to implement run as NETWORK SERVICE and I was getting Test-TargetResource invalidly returning false. Traced it to this issue among others.

The bug is caused by the following line in Get-TargetResource:
IdleWaitTimeout = ConvertTo-TimeSpanStringFromScheduledTaskString -TimeSpan $settings.IdleSettings.IdleWaitTimeout
The problem is IdleSettings object does not have a IdleWaitTimeout property, but it does have a WaitTimeout property.

I have implemented a fix in my fork, creating this issue to reference in CHANGELOG.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe issue is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions