dsccommunity / ComputerManagementDsc

DSC resources for for configuration of a Windows computer. These DSC resources allow you to perform computer management tasks, such as renaming the computer, joining a domain and scheduling tasks as well as configuring items such as virtual memory, event logs, time zones and power settings.
https://dsccommunity.org
MIT License
309 stars 82 forks source link

Enhancement for all resources which request a restart #432

Open jeremyhagan opened 2 months ago

jeremyhagan commented 2 months ago

Problem description

When using this module with the Azure DSC extension, the azure deployment completes while the DSC configuration is still running. It would be desirable if all reboots could be suppressed and then handled in a single reboot at the end.

The resource for IEEnhancedSecurityConfiguration has this feature.

Verbose logs

N/A

DSC configuration

N/A

Suggested solution

Port the suppress reboot switch to each resource

Operating system the target node is running

N/A

PowerShell version and build the target node is running

N/A

ComputerManagementDsc version

Name                  Version
----                  ------- 
ComputerManagementDsc 9.1.0
johlju commented 2 months ago

As long it is optional in each resource and not the default it sounds like something that is needed.

@jeremyhagan do you like to send in a PR?