Book Image

Learning PowerShell DSC

By : James Pogran
Book Image

Learning PowerShell DSC

By: James Pogran

Overview of this book

Table of Contents (14 chapters)
Learning PowerShell DSC
About the Author
About the Reviewers

Defining a DSC configuration script file

Now that we're past the abstract concepts and the explanatory architecture, we can start to address how to use DSC in real-world situations. Thus far in the book, we have been referring to the DSC configuration script files without really getting into the details of what that is. There isn't a specific file or file extension called a DSC configuration script file, and this term isn't really an official term for it. It has, however, become the de facto term people use to describe the file that we will create by the end of this chapter, and it's the term we will use in this book.

You should be familiar with the general format of a DSC configuration block as we have covered a few examples so far. Here is a simple one we will use as we move through the chapter. We will expand it to perform more advanced configurations and update it to allow multiple target nodes and use external configuration data:

Configuration InstallExampleSoftware  
    Node "localhost...