Debugging and troubleshooting configuration script files
So, you ran a DSC configuration against a target node using either Start-DscConfiguration
or a Pull Server and you want to look at the logs for its execution; where do you go? If you ran it with Start-DscConfiguration
and the verbose
parameter, then you have a log in your console, but that goes away when you close your console and you don't have this available with a Pull Server.
Worry not, for DSC provides a rich set of information from each operation it performs, although it's not always easy to access this information.
Status at a glance
A new feature for WMF 5 is storing status information in each target node which helps in identifying the current status of a node and, recent failures of any DSC runs. You get this by issuing the Get-DSCConfigurationStatus
command. This command returns high-level information about whether or not a DSC run was successful. Here is an example of the status returned:
PS C:\> Get-DscConfigurationStatus...