Skip to content

Test-TargetResource always returning false #1

@nick-o

Description

@nick-o

In the following line we actually compare a CimInstance with a String which will always return false so the Test-TargetResource will alway return false causing the scheduled task to be recreated on every Consistency run which will cause a bit of drift of the scheduled task making it hard to predict when recurring tasks will actually run.

A good example is the Verify task that will get recreated every time it runs pretty much making it actually executed every like 31 minutes rather than 30.

This should really be a simple fix and I'm happy to tackle it.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions