xRegistry: Option to request a reboot after Set-TargetResource has run
Some registry changes require a reboot. It would be useful if xRegistry could request a reboot if Set-TargetResource runs.
Ideally, instead of setting $global:DSCMachineStatus, it could set one of the flags examined by the xPendingReboot resource (or maybe support both options)
I don't mind implementing this, but would like to discuss preferred approach.
@bozho Could you propose a updated schema.mof for this change? This proposal would reboot the server every time the Set-TargetResource is run (when configuration was set in desired state)? Could you provide an example of a real time scenario where this would be used?
I'm gonna take a look at this - we've got some requests from our customer to add this feature.
@devopsjesus