guitarrapc / GraniResource

PowerShell Desired State Configuration Resources for real production workload.
https://www.powershellgallery.com/packages/GraniResource
MIT License
44 stars 8 forks source link

Enhancement for Grani_ScheduleTask to detect any property had been changed or not #18

Closed guitarrapc closed 9 years ago

guitarrapc commented 9 years ago

Description

Now any change on configuration and current setting can be detect and Re-settable.

Why it needed?

Previously only TaskName / TaskPath was trigger to detect change. However this cause following problems.

This is critical issue and required to detect any change is happen on configuration and current settings.

Changed

BREAKING CHANGE!! : Always force

Previously there are Force property to be settable. This version remove Force, as is always Force.

BREAKING CHANGE!! : Disable is now Required Property

Now you must set Disable Property as mandatory property.

Added WorkingDirectory Property Support

Now you can specify WorkingDirectory. This allow you specify where to run your Execute.

Any property in configuration is target to be test

Now not only TaskName and TaskPath, but any property is target to be test.

Improve Credential Handling

Now if you don't passed Credential Property, DSC will create ScheduleTask with SYSTEM account correctly.

Test

Previous resource not completed Pester test, however this version test all Pester test.