Book Image

Mastering Windows PowerShell Scripting

By : Brenton J.W. Blawat
Book Image

Mastering Windows PowerShell Scripting

By: Brenton J.W. Blawat

Overview of this book

Table of Contents (22 chapters)
Mastering Windows PowerShell Scripting
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Using desired state configuration


Desired state configuration (DSC) is a management layer which enables you to dynamically build computer environments using a common language. This management layer was designed to create configuration baselines, which enforce a set of configuration standards for a system. Simply put, it makes sure that the files, folders, services, registry, and applications that you expect to be installed or removed from a system, are in their expected state. If DSC determines that these items are not in their desired state, it will automatically correct the system to ensure it follows the desired configuration.

There are three core phases for a proper implementation of DSC. These phases include:

  • Authoring phase: The authoring phase is the process where you create the configuration. The configuration will have a subset of configuration items such as files, folders, services, registry, and applications. This is where you create what is desired to be configured for a particular...