O'Reilly logo

Learning PowerShell DSC by James Pogran

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 will 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.

Using DSC event logs

Like most Windows software, DSC writes all event information to a Windows event log, which can be viewed with many applications, including Event ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required