From MSDN
RebootNodeIfNeeded: Certain configuration changes on a target node might require it to be restarted for the changes to be applied. With the value “true,” this property will restart the node immediately and without warning. If “false,” the configuration will be completed, but the node must be restarted manually for the changes to take effect.
So my understanding is that DSC should run all the configurations even if a restart is required
But in my case that's not true, after installing a Package sometimes the DSC is marked to reboot and DSC doesn't run the rest of the configurations
I have to manually execute the command again to be run the rest of the configurations
Start-DscConfiguration -Wait -Force -Path .\SomePath
I would like to force DSC to run all configurations and then inform me if I need to restart the server
Examples of how I'm configuring Packages
LocalConfigurationManager
{
RebootNodeIfNeeded = $false
}
Package MVC3
{
Name = "Microsoft ASP.NET MVC 3"
Ensure = "Present"
Path = "$Env:SystemDrive\AspNetMVC3ToolsUpdateSetup.exe"
ProductId = "DCDEC776-BADD-48B9-8F9A-DFF513C3D7FA"
Arguments = "/q"
DependsOn = "[WindowsFeature]IIS"
Credential = $Credential
}
Package MVC4
{
Name = "Microsoft ASP.NET MVC 4 Runtime"
Ensure = "Present"
Path = "$Env:SystemDrive\AspNetMVC4Setup.exe"
ProductId = "942CC691-5B98-42A3-8BC5-A246BA69D983"
Arguments = "/q"
DependsOn = "[Package]MVC3"
Credential = $Credential
}