So I'm using DSC Push mode
I have about 200 deployments per day to several environments (DEV/INT/QA/PROD)
Every time that I deploy I want to make sure that each server is configured correctly
So I'm running DSC automatically as part of my deployment which is executed totally without user interaction
So I would like to know if there's a way to know if after running the DSC configuration a reboot/restart is required
Basically after running this line
Start-DscConfiguration -Wait -Force -Path .\SomePath
Examples of how I'm configuring Packages
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
}